@@ -495,17 +495,17 @@ metadata:
495495 helm.sh/hook : pre-install, pre-upgrade, pre-rollback
496496 helm.sh/hook-weight : " -5" # fairly high priority
497497 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 }}
500500 {{- end }}
501501spec :
502502 template :
503503 metadata :
504504 name : job-st2canary-for-writable-packs-volumes
505505 labels : {{- include "stackstorm-ha.labels" (list $ "st2canary") | nindent 8 }}
506506 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 }}
509509 {{- end }}
510510 spec :
511511 imagePullSecrets :
@@ -567,22 +567,22 @@ spec:
567567 - name : st2-pack-configs-vol
568568 mountPath : /opt/stackstorm/configs/
569569 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 }}
573573 {{- end }}
574574 resources :
575- {{- toYaml $.Values.st2canary .resources | nindent 10 }}
575+ {{- toYaml $.Values.jobs .resources | nindent 10 }}
576576 volumes :
577577 {{- include "stackstorm-ha.packs-volumes" $ | nindent 8 }}
578578 {{- if $.Values.st2.packs.volumes.configs }}
579579 {{/* do not include the pack-configs-volume helper here */}}
580580 - name : st2-pack-configs-vol
581581 {{- toYaml $.Values.st2.packs.volumes.configs | nindent 10 }}
582582 {{- 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 }}
586586 {{- end }}
587587 {{- if $.Values.dnsPolicy }}
588588 dnsPolicy : {{ $.Values.dnsPolicy }}
@@ -593,13 +593,13 @@ spec:
593593 {{- with $.Values.podSecurityContext }}
594594 securityContext : {{- toYaml . | nindent 8 }}
595595 {{- end }}
596- {{- with $.Values.st2canary .nodeSelector }}
596+ {{- with $.Values.jobs .nodeSelector }}
597597 nodeSelector : {{- toYaml . | nindent 8 }}
598598 {{- end }}
599- {{- with $.Values.st2canary .affinity }}
599+ {{- with $.Values.jobs .affinity }}
600600 affinity : {{- toYaml . | nindent 8 }}
601601 {{- end }}
602- {{- with $.Values.st2canary .tolerations }}
602+ {{- with $.Values.jobs .tolerations }}
603603 tolerations : {{- toYaml . | nindent 8 }}
604604 {{- end }}
605605{{- end }}
0 commit comments