|
41 | 41 | {{- if .Values.image.pullSecret }} |
42 | 42 | - name: {{ .Values.image.pullSecret }} |
43 | 43 | {{- end }} |
44 | | - # Sidecar container for generating .htpasswd with st2 username & password pair and sharing produced file with the main st2auth container |
45 | 44 | initContainers: |
| 45 | + {{ include "init-containers-wait-for-db" . | indent 6 }} |
| 46 | + {{ include "init-containers-wait-for-mq" . | indent 6 }} |
| 47 | + # Sidecar container for generating .htpasswd with st2 username & password pair and sharing produced file with the main st2auth container |
46 | 48 | - name: generate-htpasswd |
47 | 49 | image: "{{ template "imageRepository" . }}/st2auth{{ template "enterpriseSuffix" . }}:{{ .Chart.AppVersion }}" |
48 | 50 | imagePullPolicy: {{ .Values.image.pullPolicy }} |
@@ -158,8 +160,10 @@ spec: |
158 | 160 | {{- if .Values.image.pullSecret }} |
159 | 161 | - name: {{ .Values.image.pullSecret }} |
160 | 162 | {{- end }} |
161 | | - {{- if .Values.st2.packs.image.repository }} |
162 | 163 | initContainers: |
| 164 | + {{ include "init-containers-wait-for-db" . | indent 6 }} |
| 165 | + {{ include "init-containers-wait-for-mq" . | indent 6 }} |
| 166 | + {{- if .Values.st2.packs.image.repository }} |
163 | 167 | # Merge packs and virtualenvs from st2api with those from the st2.packs image |
164 | 168 | # Custom packs |
165 | 169 | - name: st2-custom-packs |
@@ -302,6 +306,9 @@ spec: |
302 | 306 | {{- if .Values.image.pullSecret }} |
303 | 307 | - name: {{ .Values.image.pullSecret }} |
304 | 308 | {{- end }} |
| 309 | + initContainers: |
| 310 | + {{ include "init-containers-wait-for-db" . | indent 6 }} |
| 311 | + {{ include "init-containers-wait-for-mq" . | indent 6 }} |
305 | 312 | containers: |
306 | 313 | - name: st2stream{{ template "enterpriseSuffix" . }} |
307 | 314 | image: "{{ template "imageRepository" . }}/st2stream{{ template "enterpriseSuffix" . }}:{{ .Chart.AppVersion }}" |
@@ -487,6 +494,9 @@ spec: |
487 | 494 | {{- if .Values.image.pullSecret }} |
488 | 495 | - name: {{ .Values.image.pullSecret }} |
489 | 496 | {{- end }} |
| 497 | + initContainers: |
| 498 | + {{ include "init-containers-wait-for-db" . | indent 6 }} |
| 499 | + {{ include "init-containers-wait-for-mq" . | indent 6 }} |
490 | 500 | containers: |
491 | 501 | - name: st2rulesengine{{ template "enterpriseSuffix" . }} |
492 | 502 | image: "{{ template "imageRepository" . }}/st2rulesengine{{ template "enterpriseSuffix" . }}:{{ .Chart.AppVersion }}" |
@@ -577,6 +587,9 @@ spec: |
577 | 587 | {{- if .Values.image.pullSecret }} |
578 | 588 | - name: {{ .Values.image.pullSecret }} |
579 | 589 | {{- end }} |
| 590 | + initContainers: |
| 591 | + {{ include "init-containers-wait-for-db" . | indent 6 }} |
| 592 | + {{ include "init-containers-wait-for-mq" . | indent 6 }} |
580 | 593 | containers: |
581 | 594 | - name: st2timersengine{{ template "enterpriseSuffix" . }} |
582 | 595 | image: "{{ template "imageRepository" . }}/st2timersengine{{ template "enterpriseSuffix" . }}:{{ .Chart.AppVersion }}" |
@@ -659,6 +672,9 @@ spec: |
659 | 672 | {{- if .Values.image.pullSecret }} |
660 | 673 | - name: {{ .Values.image.pullSecret }} |
661 | 674 | {{- end }} |
| 675 | + initContainers: |
| 676 | + {{ include "init-containers-wait-for-db" . | indent 6 }} |
| 677 | + {{ include "init-containers-wait-for-mq" . | indent 6 }} |
662 | 678 | containers: |
663 | 679 | - name: st2workflowengine{{ template "enterpriseSuffix" . }} |
664 | 680 | image: "{{ template "imageRepository" . }}/st2workflowengine{{ template "enterpriseSuffix" . }}:{{ .Chart.AppVersion }}" |
@@ -753,6 +769,9 @@ spec: |
753 | 769 | {{- if .Values.image.pullSecret }} |
754 | 770 | - name: {{ .Values.image.pullSecret }} |
755 | 771 | {{- end }} |
| 772 | + initContainers: |
| 773 | + {{ include "init-containers-wait-for-db" . | indent 6 }} |
| 774 | + {{ include "init-containers-wait-for-mq" . | indent 6 }} |
756 | 775 | containers: |
757 | 776 | - name: st2scheduler{{ template "enterpriseSuffix" . }} |
758 | 777 | image: "{{ template "imageRepository" . }}/st2scheduler{{ template "enterpriseSuffix" . }}:{{ .Chart.AppVersion }}" |
@@ -847,6 +866,9 @@ spec: |
847 | 866 | {{- if .Values.image.pullSecret }} |
848 | 867 | - name: {{ .Values.image.pullSecret }} |
849 | 868 | {{- end }} |
| 869 | + initContainers: |
| 870 | + {{ include "init-containers-wait-for-db" . | indent 6 }} |
| 871 | + {{ include "init-containers-wait-for-mq" . | indent 6 }} |
850 | 872 | containers: |
851 | 873 | - name: st2notifier{{ template "enterpriseSuffix" . }} |
852 | 874 | image: "{{ template "imageRepository" . }}/st2notifier{{ template "enterpriseSuffix" . }}:{{ .Chart.AppVersion }}" |
@@ -939,8 +961,10 @@ spec: |
939 | 961 | {{- if $.Values.image.pullSecret }} |
940 | 962 | - name: {{ $.Values.image.pullSecret }} |
941 | 963 | {{- end }} |
942 | | - {{- if $.Values.st2.packs.image.repository }} |
943 | 964 | initContainers: |
| 965 | + {{ include "init-containers-wait-for-db" $ | indent 6 }} |
| 966 | + {{ include "init-containers-wait-for-mq" $ | indent 6 }} |
| 967 | + {{- if $.Values.st2.packs.image.repository }} |
944 | 968 | # Merge packs and virtualenvs from st2sensorcontainer with those from the st2.packs image |
945 | 969 | # Custom packs |
946 | 970 | - name: st2-custom-packs |
@@ -1108,8 +1132,10 @@ spec: |
1108 | 1132 | {{- if .Values.image.pullSecret }} |
1109 | 1133 | - name: {{ .Values.image.pullSecret }} |
1110 | 1134 | {{- end }} |
1111 | | - {{- if .Values.st2.packs.image.repository }} |
1112 | 1135 | initContainers: |
| 1136 | + {{ include "init-containers-wait-for-db" . | indent 6 }} |
| 1137 | + {{ include "init-containers-wait-for-mq" . | indent 6 }} |
| 1138 | + {{- if .Values.st2.packs.image.repository }} |
1113 | 1139 | # Merge packs and virtualenvs from st2actionrunner with those from the st2.packs image |
1114 | 1140 | # Custom packs |
1115 | 1141 | - name: st2-custom-packs |
@@ -1259,6 +1285,9 @@ spec: |
1259 | 1285 | {{- if .Values.image.pullSecret }} |
1260 | 1286 | - name: {{ .Values.image.pullSecret }} |
1261 | 1287 | {{- end }} |
| 1288 | + initContainers: |
| 1289 | + {{ include "init-containers-wait-for-db" . | indent 6 }} |
| 1290 | + {{ include "init-containers-wait-for-mq" . | indent 6 }} |
1262 | 1291 | containers: |
1263 | 1292 | - name: st2garbagecollector{{ template "enterpriseSuffix" . }} |
1264 | 1293 | image: "{{ template "imageRepository" . }}/st2garbagecollector{{ template "enterpriseSuffix" . }}:{{ .Chart.AppVersion }}" |
|
0 commit comments