@@ -164,10 +164,6 @@ spec:
164
164
volumeMounts :
165
165
- name : st2client-config-vol
166
166
mountPath : /root/.st2/
167
- {{- range .Values.jobs.extra_volumes }}
168
- - name : {{ required "Each volume must have a 'name' in jobs.extra_volumes" .name }}
169
- {{- tpl (required "Each volume must have a 'mount' definition in jobs.extra_volumes" .mount | toYaml) $ | nindent 10 }}
170
- {{- end }}
171
167
# `st2 login` doesn't exit on failure correctly, use old methods instead. See bug: https://github.com/StackStorm/st2/issues/4338
172
168
command :
173
169
- ' sh'
@@ -294,10 +290,6 @@ spec:
294
290
volumeMounts :
295
291
- name : st2client-config-vol
296
292
mountPath : /root/.st2/
297
- {{- range .Values.jobs.extra_volumes }}
298
- - name : {{ required "Each volume must have a 'name' in jobs.extra_volumes" .name }}
299
- {{- tpl (required "Each volume must have a 'mount' definition in jobs.extra_volumes" .mount | toYaml) $ | nindent 10 }}
300
- {{- end }}
301
293
# `st2 login` doesn't exit on failure correctly, use old methods instead. See bug: https://github.com/StackStorm/st2/issues/4338
302
294
command :
303
295
- ' sh'
@@ -352,7 +344,7 @@ spec:
352
344
secretName : {{ .Release.Name }}-st2-kv
353
345
{{- range .Values.jobs.extra_volumes }}
354
346
- name : {{ required "Each volume must have a 'name' in jobs.extra_volumes" .name }}
355
- {{- tpl (required "Each volume must have a 'mount ' definition in jobs.extra_volumes" .mount | toYaml) $ | nindent 10 }}
347
+ {{- tpl (required "Each volume must have a 'volume ' definition in jobs.extra_volumes" .volume | toYaml) $ | nindent 10 }}
356
348
{{- end }}
357
349
restartPolicy : OnFailure
358
350
{{- if .Values.dnsPolicy }}
@@ -428,10 +420,6 @@ spec:
428
420
{{- include "stackstorm-ha.st2-config-volume-mounts" . | nindent 8 }}
429
421
{{- include "stackstorm-ha.pack-configs-volume-mount" . | nindent 8 }}
430
422
{{- include "stackstorm-ha.packs-volume-mounts-for-register-job" . | nindent 8 }}
431
- {{- range .Values.jobs.extra_volumes }}
432
- - name : {{ required "Each volume must have a 'name' in jobs.extra_volumes" .name }}
433
- {{- tpl (required "Each volume must have a 'mount' definition in jobs.extra_volumes" .mount | toYaml) $ | nindent 10 }}
434
- {{- end }}
435
423
{{ end }}
436
424
containers :
437
425
- name : st2-register-content
@@ -473,7 +461,7 @@ spec:
473
461
{{- include "stackstorm-ha.pack-configs-volume" . | nindent 8 }}
474
462
{{- range .Values.jobs.extra_volumes }}
475
463
- name : {{ required "Each volume must have a 'name' in jobs.extra_volumes" .name }}
476
- {{- tpl (required "Each volume must have a 'mount ' definition in jobs.extra_volumes" .mount | toYaml) $ | nindent 10 }}
464
+ {{- tpl (required "Each volume must have a 'volume ' definition in jobs.extra_volumes" .volume | toYaml) $ | nindent 10 }}
477
465
{{- end }}
478
466
restartPolicy : OnFailure
479
467
{{- if .Values.dnsPolicy }}
@@ -555,10 +543,6 @@ spec:
555
543
volumeMounts :
556
544
- name : st2client-config-vol
557
545
mountPath : /root/.st2/
558
- {{- range .Values.jobs.extra_volumes }}
559
- - name : {{ required "Each volume must have a 'name' in jobs.extra_volumes" .name }}
560
- {{- tpl (required "Each volume must have a 'mount' definition in jobs.extra_volumes" .mount | toYaml) $ | nindent 10 }}
561
- {{- end }}
562
546
# `st2 login` doesn't exit on failure correctly, use old methods instead. See bug: https://github.com/StackStorm/st2/issues/4338
563
547
command :
564
548
- ' sh'
@@ -613,7 +597,7 @@ spec:
613
597
{{- include "stackstorm-ha.pack-configs-volume" $ | nindent 8 }}
614
598
{{- range .Values.jobs.extra_volumes }}
615
599
- name : {{ required "Each volume must have a 'name' in jobs.extra_volumes" .name }}
616
- {{- tpl (required "Each volume must have a 'mount ' definition in jobs.extra_volumes" .mount | toYaml) $ | nindent 10 }}
600
+ {{- tpl (required "Each volume must have a 'volume ' definition in jobs.extra_volumes" .volume | toYaml) $ | nindent 10 }}
617
601
{{- end }}
618
602
restartPolicy : OnFailure
619
603
{{- if $.Values.dnsPolicy }}
0 commit comments