|
45 | 45 | {{ include "init-containers-wait-for-mq" . | indent 6 }} |
46 | 46 | # Sidecar container for generating .htpasswd with st2 username & password pair and sharing produced file with the main st2auth container |
47 | 47 | - name: generate-htpasswd |
48 | | - image: '{{ template "imageRepository" . }}/st2auth:{{ .Chart.AppVersion }}' |
| 48 | + image: '{{ template "imageRepository" . }}/st2auth:{{ tpl (.Values.st2auth.image.tag | default .Values.image.tag) . }}' |
49 | 49 | imagePullPolicy: {{ .Values.image.pullPolicy }} |
50 | 50 | env: |
51 | 51 | - name: ST2_AUTH_USERNAME |
|
67 | 67 | - printf "${ST2_AUTH_USERNAME}:$(openssl passwd -apr1 "${ST2_AUTH_PASSWORD}")\n" > /tmp/st2/htpasswd |
68 | 68 | containers: |
69 | 69 | - name: st2auth |
70 | | - image: '{{ template "imageRepository" . }}/st2auth:{{ .Chart.AppVersion }}' |
| 70 | + image: '{{ template "imageRepository" . }}/st2auth:{{ tpl (.Values.st2auth.image.tag | default .Values.image.tag) . }}' |
71 | 71 | imagePullPolicy: {{ .Values.image.pullPolicy }} |
72 | 72 | ports: |
73 | 73 | - containerPort: 9100 |
@@ -161,7 +161,7 @@ spec: |
161 | 161 | {{- end }} |
162 | 162 | containers: |
163 | 163 | - name: st2api |
164 | | - image: '{{ template "imageRepository" . }}/st2api:{{ .Chart.AppVersion }}' |
| 164 | + image: '{{ template "imageRepository" . }}/st2api:{{ tpl (.Values.st2api.image.tag | default .Values.image.tag) . }}' |
165 | 165 | imagePullPolicy: {{ .Values.image.pullPolicy }} |
166 | 166 | ports: |
167 | 167 | - containerPort: 9101 |
@@ -265,7 +265,7 @@ spec: |
265 | 265 | {{ include "init-containers-wait-for-mq" . | indent 6 }} |
266 | 266 | containers: |
267 | 267 | - name: st2stream |
268 | | - image: '{{ template "imageRepository" . }}/st2stream:{{ .Chart.AppVersion }}' |
| 268 | + image: '{{ template "imageRepository" . }}/st2stream:{{ tpl (.Values.st2stream.image.tag | default .Values.image.tag) . }}' |
269 | 269 | imagePullPolicy: {{ .Values.image.pullPolicy }} |
270 | 270 | ports: |
271 | 271 | - containerPort: 9102 |
@@ -340,7 +340,7 @@ spec: |
340 | 340 | {{- end }} |
341 | 341 | containers: |
342 | 342 | - name: st2web |
343 | | - image: '{{ template "imageRepository" . }}/st2web:{{ .Chart.AppVersion }}' |
| 343 | + image: '{{ template "imageRepository" . }}/st2web:{{ tpl (.Values.st2web.image.tag | default .Values.image.tag) . }}' |
344 | 344 | imagePullPolicy: {{ .Values.image.pullPolicy }} |
345 | 345 | ports: |
346 | 346 | - containerPort: 80 |
@@ -441,7 +441,7 @@ spec: |
441 | 441 | {{ include "init-containers-wait-for-mq" . | indent 6 }} |
442 | 442 | containers: |
443 | 443 | - name: st2rulesengine |
444 | | - image: '{{ template "imageRepository" . }}/st2rulesengine:{{ .Chart.AppVersion }}' |
| 444 | + image: '{{ template "imageRepository" . }}/st2rulesengine:{{ tpl (.Values.st2rulesengine.image.tag | default .Values.image.tag) . }}' |
445 | 445 | imagePullPolicy: {{ .Values.image.pullPolicy }} |
446 | 446 | # TODO: Add liveness/readiness probes (#3) |
447 | 447 | #livenessProbe: |
@@ -528,7 +528,7 @@ spec: |
528 | 528 | {{ include "init-containers-wait-for-mq" . | indent 6 }} |
529 | 529 | containers: |
530 | 530 | - name: st2timersengine |
531 | | - image: '{{ template "imageRepository" . }}/st2timersengine:{{ .Chart.AppVersion }}' |
| 531 | + image: '{{ template "imageRepository" . }}/st2timersengine:{{ tpl (.Values.st2timersengine.image.tag | default .Values.image.tag) . }}' |
532 | 532 | imagePullPolicy: {{ .Values.image.pullPolicy }} |
533 | 533 | # TODO: Add liveness/readiness probes (#3) |
534 | 534 | #livenessProbe: |
@@ -607,7 +607,7 @@ spec: |
607 | 607 | {{ include "init-containers-wait-for-mq" . | indent 6 }} |
608 | 608 | containers: |
609 | 609 | - name: st2workflowengine |
610 | | - image: '{{ template "imageRepository" . }}/st2workflowengine:{{ .Chart.AppVersion }}' |
| 610 | + image: '{{ template "imageRepository" . }}/st2workflowengine:{{ tpl (.Values.st2workflowengine.image.tag | default .Values.image.tag) . }}' |
611 | 611 | imagePullPolicy: {{ .Values.image.pullPolicy }} |
612 | 612 | # TODO: Add liveness/readiness probes (#3) |
613 | 613 | #livenessProbe: |
@@ -698,7 +698,7 @@ spec: |
698 | 698 | {{ include "init-containers-wait-for-mq" . | indent 6 }} |
699 | 699 | containers: |
700 | 700 | - name: st2scheduler |
701 | | - image: '{{ template "imageRepository" . }}/st2scheduler:{{ .Chart.AppVersion }}' |
| 701 | + image: '{{ template "imageRepository" . }}/st2scheduler:{{ tpl (.Values.st2scheduler.image.tag | default .Values.image.tag) . }}' |
702 | 702 | imagePullPolicy: {{ .Values.image.pullPolicy }} |
703 | 703 | # TODO: Add liveness/readiness probes (#3) |
704 | 704 | #livenessProbe: |
@@ -789,7 +789,7 @@ spec: |
789 | 789 | {{ include "init-containers-wait-for-mq" . | indent 6 }} |
790 | 790 | containers: |
791 | 791 | - name: st2notifier |
792 | | - image: '{{ template "imageRepository" . }}/st2notifier:{{ .Chart.AppVersion }}' |
| 792 | + image: '{{ template "imageRepository" . }}/st2notifier:{{ tpl (.Values.st2notifier.image.tag | default .Values.image.tag) . }}' |
793 | 793 | imagePullPolicy: {{ .Values.image.pullPolicy }} |
794 | 794 | # TODO: Add liveness/readiness probes (#3) |
795 | 795 | #livenessProbe: |
@@ -881,7 +881,7 @@ spec: |
881 | 881 | {{- end }} |
882 | 882 | containers: |
883 | 883 | - name: st2sensorcontainer{{ template "hyphenPrefix" .name }} |
884 | | - image: '{{ template "imageRepository" $ }}/st2sensorcontainer:{{ $.Chart.AppVersion }}' |
| 884 | + image: '{{ template "imageRepository" $ }}/st2sensorcontainer:{{ tpl (.image.tag | default $.Values.image.tag) $ }}' |
885 | 885 | imagePullPolicy: {{ $.Values.image.pullPolicy }} |
886 | 886 | {{- with .readinessProbe }} |
887 | 887 | # Probe to check if app is running. Failure will lead to a pod restart. |
@@ -1015,7 +1015,7 @@ spec: |
1015 | 1015 | {{- end }} |
1016 | 1016 | containers: |
1017 | 1017 | - name: st2actionrunner |
1018 | | - image: '{{ template "imageRepository" . }}/st2actionrunner:{{ .Chart.AppVersion }}' |
| 1018 | + image: '{{ template "imageRepository" . }}/st2actionrunner:{{ tpl (.Values.st2actionrunner.image.tag | default .Values.image.tag) . }}' |
1019 | 1019 | imagePullPolicy: {{ .Values.image.pullPolicy }} |
1020 | 1020 | # TODO: Add liveness/readiness probes (#3) |
1021 | 1021 | #livenessProbe: |
@@ -1128,7 +1128,7 @@ spec: |
1128 | 1128 | {{ include "init-containers-wait-for-mq" . | indent 6 }} |
1129 | 1129 | containers: |
1130 | 1130 | - name: st2garbagecollector |
1131 | | - image: '{{ template "imageRepository" . }}/st2garbagecollector:{{ .Chart.AppVersion }}' |
| 1131 | + image: '{{ template "imageRepository" . }}/st2garbagecollector:{{ tpl (.Values.st2garbagecollector.image.tag | default .Values.image.tag) . }}' |
1132 | 1132 | imagePullPolicy: {{ .Values.image.pullPolicy }} |
1133 | 1133 | # TODO: Add liveness/readiness probes (#3) |
1134 | 1134 | #livenessProbe: |
@@ -1213,7 +1213,7 @@ spec: |
1213 | 1213 | {{- end }} |
1214 | 1214 | # Sidecar container for generating st2client config with st2 username & password pair and sharing produced file with the main container |
1215 | 1215 | - name: generate-st2client-config |
1216 | | - image: '{{ template "imageRepository" . }}/st2actionrunner:{{ .Chart.AppVersion }}' |
| 1216 | + image: '{{ template "imageRepository" . }}/st2actionrunner:{{ tpl (.Values.st2client.image.tag | default .Values.image.tag) . }}' |
1217 | 1217 | imagePullPolicy: {{ .Values.image.pullPolicy }} |
1218 | 1218 | envFrom: |
1219 | 1219 | - configMapRef: |
@@ -1244,7 +1244,7 @@ spec: |
1244 | 1244 | EOT |
1245 | 1245 | containers: |
1246 | 1246 | - name: st2client |
1247 | | - image: '{{ template "imageRepository" . }}/st2actionrunner:{{ .Chart.AppVersion }}' |
| 1247 | + image: '{{ template "imageRepository" . }}/st2actionrunner:{{ tpl (.Values.st2client.image.tag | default .Values.image.tag) . }}' |
1248 | 1248 | imagePullPolicy: {{ .Values.image.pullPolicy }} |
1249 | 1249 | env: |
1250 | 1250 | - name: ST2CLIENT |
@@ -1374,7 +1374,7 @@ spec: |
1374 | 1374 | {{- end }} |
1375 | 1375 | containers: |
1376 | 1376 | - name: st2chatops |
1377 | | - image: '{{ .Values.st2chatops.image.repository | default "stackstorm" }}/{{ .Values.st2chatops.image.name | default "st2chatops" }}:{{ tpl (.Values.st2chatops.image.tag | default .Chart.AppVersion) . }}' |
| 1377 | + image: '{{ .Values.st2chatops.image.repository | default "stackstorm" }}/{{ .Values.st2chatops.image.name | default "st2chatops" }}:{{ tpl (.Values.st2chatops.image.tag | default .Values.image.tag) . }}' |
1378 | 1378 | imagePullPolicy: {{ .Values.st2chatops.image.pullPolicy | default .Values.image.pullPolicy }} |
1379 | 1379 | {{- if not (hasKey .Values.st2chatops.env "ST2_API_KEY") }} |
1380 | 1380 | env: |
|
0 commit comments