|
30 | 30 | labels: |
31 | 31 | app: gateway |
32 | 32 | spec: |
| 33 | + {{- with .Values.imagePullSecrets }} |
| 34 | + imagePullSecrets: |
| 35 | + {{- toYaml . | nindent 8 }} |
| 36 | + {{- end }} |
33 | 37 | {{- if and .Values.gateway.topologySpreadConstraints .Values.openfaasPro }} |
34 | 38 | topologySpreadConstraints: |
35 | 39 | {{- toYaml .Values.gateway.topologySpreadConstraints | nindent 8 }} |
|
70 | 74 | resources: |
71 | 75 | {{- .Values.gateway.resources | toYaml | nindent 12 }} |
72 | 76 | {{- if .Values.openfaasPro }} |
73 | | - image: {{ .Values.gatewayPro.image }} |
| 77 | + image: {{ include "openfaas.image" (dict "image" .Values.gatewayPro.image "registryPrefix" .Values.registryPrefix) }} |
74 | 78 | {{- else }} |
75 | | - image: {{ .Values.gateway.image }} |
| 79 | + image: {{ include "openfaas.image" (dict "image" .Values.gateway.image "registryPrefix" .Values.registryPrefix) }} |
76 | 80 | {{- end }} |
77 | 81 | imagePullPolicy: {{ .Values.openfaasImagePullPolicy }} |
78 | 82 | command: |
@@ -233,7 +237,7 @@ spec: |
233 | 237 | - name: operator |
234 | 238 | resources: |
235 | 239 | {{- .Values.operator.resources | toYaml | nindent 12 }} |
236 | | - image: {{ .Values.operator.image }} |
| 240 | + image: {{ include "openfaas.image" (dict "image" .Values.operator.image "registryPrefix" .Values.registryPrefix) }} |
237 | 241 | imagePullPolicy: {{ .Values.openfaasImagePullPolicy }} |
238 | 242 | command: |
239 | 243 | - ./faas-netes |
@@ -355,11 +359,11 @@ spec: |
355 | 359 | resources: |
356 | 360 | {{- .Values.faasnetes.resources | toYaml | nindent 12 }} |
357 | 361 | {{- if .Values.openfaasPro }} |
358 | | - image: {{ .Values.faasnetesPro.image }} |
| 362 | + image: {{ include "openfaas.image" (dict "image" .Values.faasnetesPro.image "registryPrefix" .Values.registryPrefix) }} |
359 | 363 | {{- else if .Values.oem }} |
360 | | - image: {{ .Values.faasnetesOem.image}} |
| 364 | + image: {{ include "openfaas.image" (dict "image" .Values.faasnetesOem.image "registryPrefix" .Values.registryPrefix) }} |
361 | 365 | {{- else }} |
362 | | - image: {{ .Values.faasnetes.image }} |
| 366 | + image: {{ include "openfaas.image" (dict "image" .Values.faasnetes.image "registryPrefix" .Values.registryPrefix) }} |
363 | 367 | {{- end }} |
364 | 368 | imagePullPolicy: {{ .Values.openfaasImagePullPolicy }} |
365 | 369 | {{- if .Values.securityContext }} |
|
0 commit comments