|
3 | 3 | {{- fail "Value st2.packs.image was renamed to st2.packs.images and is now a list of images" }} |
4 | 4 | {{- end }} |
5 | 5 | {{- if .Values.st2.packs.volumes.enabled }} |
6 | | - {{- if .Values.st2.packs.images }} |
7 | | -{{- fail "st2.packs.images is not compatible with st2.packs.volumes.enabled. Please use only one method for setting up packs directories." }} |
8 | | - {{- end }} |
9 | 6 | {{- if not (and .Values.st2.packs.volumes.packs .Values.st2.packs.volumes.virtualenvs) }} |
10 | 7 | {{- fail "Volume definition(s) missing! When st2.packs.volumes.enabled, you must define volumes for both packs and virtualenvs." }} |
11 | 8 | {{- end }} |
@@ -186,7 +183,7 @@ spec: |
186 | 183 | initContainers: |
187 | 184 | {{- include "init-containers-wait-for-db" . | nindent 6 }} |
188 | 185 | {{- include "init-containers-wait-for-mq" . | nindent 6 }} |
189 | | - {{- if .Values.st2.packs.images }} |
| 186 | + {{- if and .Values.st2.packs.images (not .Values.st2.packs.volumes.enabled) }} |
190 | 187 | {{- include "packs-initContainers" . | nindent 6 }} |
191 | 188 | {{- end }} |
192 | 189 | containers: |
@@ -1039,7 +1036,7 @@ spec: |
1039 | 1036 | initContainers: |
1040 | 1037 | {{- include "init-containers-wait-for-db" $ | nindent 6 }} |
1041 | 1038 | {{- include "init-containers-wait-for-mq" $ | nindent 6 }} |
1042 | | - {{- if $.Values.st2.packs.images }} |
| 1039 | + {{- if and $.Values.st2.packs.images (not $.Values.st2.packs.volumes.enabled) }} |
1043 | 1040 | {{- include "packs-initContainers" $ | nindent 6 }} |
1044 | 1041 | {{- end }} |
1045 | 1042 | containers: |
@@ -1177,7 +1174,7 @@ spec: |
1177 | 1174 | initContainers: |
1178 | 1175 | {{- include "init-containers-wait-for-db" . | nindent 6 }} |
1179 | 1176 | {{- include "init-containers-wait-for-mq" . | nindent 6 }} |
1180 | | - {{- if .Values.st2.packs.images }} |
| 1177 | + {{- if and .Values.st2.packs.images (not .Values.st2.packs.volumes.enabled) }} |
1181 | 1178 | {{- include "packs-initContainers" . | nindent 6 }} |
1182 | 1179 | {{- end }} |
1183 | 1180 | containers: |
@@ -1399,7 +1396,7 @@ spec: |
1399 | 1396 | - name: {{ .Values.image.pullSecret }} |
1400 | 1397 | {{- end }} |
1401 | 1398 | initContainers: |
1402 | | - {{- if .Values.st2.packs.images }} |
| 1399 | + {{- if and .Values.st2.packs.images (not .Values.st2.packs.volumes.enabled) }} |
1403 | 1400 | {{- include "packs-initContainers" . | nindent 6 }} |
1404 | 1401 | {{- end }} |
1405 | 1402 | # Sidecar container for generating st2client config with st2 username & password pair and sharing produced file with the main container |
|
0 commit comments