@@ -495,17 +495,17 @@ metadata:
495
495
helm.sh/hook : pre-install, pre-upgrade, pre-rollback
496
496
helm.sh/hook-weight : " -5" # fairly high priority
497
497
helm.sh/hook-delete-policy : hook-succeeded
498
- {{- if $.Values.st2canary .annotations }}
499
- {{- toYaml $.Values.st2canary .annotations | nindent 4 }}
498
+ {{- if $.Values.jobs .annotations }}
499
+ {{- toYaml $.Values.jobs .annotations | nindent 4 }}
500
500
{{- end }}
501
501
spec :
502
502
template :
503
503
metadata :
504
504
name : job-st2canary-for-writable-packs-volumes
505
505
labels : {{- include "stackstorm-ha.labels" (list $ "st2canary") | nindent 8 }}
506
506
annotations :
507
- {{- if $.Values.st2canary .annotations }}
508
- {{- toYaml $.Values.st2canary .annotations | nindent 8 }}
507
+ {{- if $.Values.jobs .annotations }}
508
+ {{- toYaml $.Values.jobs .annotations | nindent 8 }}
509
509
{{- end }}
510
510
spec :
511
511
imagePullSecrets :
@@ -567,22 +567,22 @@ spec:
567
567
- name : st2-pack-configs-vol
568
568
mountPath : /opt/stackstorm/configs/
569
569
readOnly : false
570
- {{- range $.Values.st2canary .extra_volumes }}
571
- - name : {{ required "Each volume must have a 'name' in st2canary .extra_volumes" .name }}
572
- {{- tpl (required "Each volume must have a 'mount' definition in st2canary .extra_volumes" .mount | toYaml) $ | nindent 10 }}
570
+ {{- range $.Values.jobs .extra_volumes }}
571
+ - name : {{ required "Each volume must have a 'name' in jobs .extra_volumes" .name }}
572
+ {{- tpl (required "Each volume must have a 'mount' definition in jobs .extra_volumes" .mount | toYaml) $ | nindent 10 }}
573
573
{{- end }}
574
574
resources :
575
- {{- toYaml $.Values.st2canary .resources | nindent 10 }}
575
+ {{- toYaml $.Values.jobs .resources | nindent 10 }}
576
576
volumes :
577
577
{{- include "stackstorm-ha.packs-volumes" $ | nindent 8 }}
578
578
{{- if $.Values.st2.packs.volumes.configs }}
579
579
{{/* do not include the pack-configs-volume helper here */}}
580
580
- name : st2-pack-configs-vol
581
581
{{- toYaml $.Values.st2.packs.volumes.configs | nindent 10 }}
582
582
{{- end }}
583
- {{- range $.Values.st2canary .extra_volumes }}
584
- - name : {{ required "Each volume must have a 'name' in st2canary .extra_volumes" .name }}
585
- {{- tpl (required "Each volume must have a 'volume' definition in st2canary .extra_volumes" .volume | toYaml) $ | nindent 10 }}
583
+ {{- range $.Values.jobs .extra_volumes }}
584
+ - name : {{ required "Each volume must have a 'name' in jobs .extra_volumes" .name }}
585
+ {{- tpl (required "Each volume must have a 'volume' definition in jobs .extra_volumes" .volume | toYaml) $ | nindent 10 }}
586
586
{{- end }}
587
587
{{- if $.Values.dnsPolicy }}
588
588
dnsPolicy : {{ $.Values.dnsPolicy }}
@@ -593,13 +593,13 @@ spec:
593
593
{{- with $.Values.podSecurityContext }}
594
594
securityContext : {{- toYaml . | nindent 8 }}
595
595
{{- end }}
596
- {{- with $.Values.st2canary .nodeSelector }}
596
+ {{- with $.Values.jobs .nodeSelector }}
597
597
nodeSelector : {{- toYaml . | nindent 8 }}
598
598
{{- end }}
599
- {{- with $.Values.st2canary .affinity }}
599
+ {{- with $.Values.jobs .affinity }}
600
600
affinity : {{- toYaml . | nindent 8 }}
601
601
{{- end }}
602
- {{- with $.Values.st2canary .tolerations }}
602
+ {{- with $.Values.jobs .tolerations }}
603
603
tolerations : {{- toYaml . | nindent 8 }}
604
604
{{- end }}
605
605
{{- end }}
0 commit comments