@@ -411,7 +411,8 @@ spec:
411
411
- name : st2-register-content-custom-init
412
412
image : ' {{ template "stackstorm-ha.imageRepository" . }}/st2actionrunner:{{ tpl (.Values.jobs.image.tag | default (.Values.st2actionrunner.image.tag | default .Values.image.tag)) . }}'
413
413
imagePullPolicy : {{ .Values.image.pullPolicy }}
414
- {{- with .Values.securityContext }}
414
+ {{- with .Values.st2actionrunner.securityContext | default .Values.securityContext }}
415
+ {{/* st2actionrunner is likely the most permissive so use that if defined. */}}
415
416
securityContext : {{- toYaml . | nindent 10 }}
416
417
{{- end }}
417
418
command : {{- toYaml $.Values.jobs.preRegisterContentCommand | nindent 8 }}
@@ -425,7 +426,8 @@ spec:
425
426
- name : st2-register-content
426
427
image : ' {{ template "stackstorm-ha.imageRepository" . }}/st2actionrunner:{{ tpl (.Values.jobs.image.tag | default (.Values.st2actionrunner.image.tag | default .Values.image.tag)) . }}'
427
428
imagePullPolicy : {{ .Values.image.pullPolicy }}
428
- {{- with .Values.securityContext }}
429
+ {{- with .Values.st2actionrunner.securityContext | default .Values.securityContext }}
430
+ {{/* st2actionrunner is likely the most permissive so use that if defined. */}}
429
431
securityContext : {{- toYaml . | nindent 10 }}
430
432
{{- end }}
431
433
command :
@@ -470,7 +472,8 @@ spec:
470
472
{{- with .Values.dnsConfig }}
471
473
dnsConfig : {{- toYaml . | nindent 8 }}
472
474
{{- end }}
473
- {{- with .Values.podSecurityContext }}
475
+ {{- with .Values.st2actionrunner.podSecurityContext | default .Values.podSecurityContext }}
476
+ {{/* st2actionrunner is likely the most permissive so use that if defined. */}}
474
477
securityContext : {{- toYaml . | nindent 8 }}
475
478
{{- end }}
476
479
{{- with .Values.jobs.nodeSelector }}
@@ -641,7 +644,7 @@ spec:
641
644
- name : generate-st2client-config
642
645
image : ' {{ template "stackstorm-ha.imageRepository" $ }}/st2actionrunner:{{ tpl ($.Values.jobs.image.tag | default ($.Values.st2actionrunner.image.tag | default $.Values.image.tag)) $ }}'
643
646
imagePullPolicy : {{ $.Values.image.pullPolicy }}
644
- {{- with $.Values.securityContext }}
647
+ {{- with default $.Values.st2actionrunner.securityContext | default $.Values.securityContext }}
645
648
securityContext : {{- toYaml . | nindent 10 }}
646
649
{{- end }}
647
650
envFrom :
@@ -668,7 +671,7 @@ spec:
668
671
- name : {{ $name }}
669
672
image : ' {{ template "stackstorm-ha.imageRepository" $ }}/st2actionrunner:{{ tpl ($.Values.jobs.image.tag | default ($.Values.st2actionrunner.image.tag | default $.Values.image.tag)) $ }}'
670
673
imagePullPolicy : {{ $.Values.image.pullPolicy }}
671
- {{- with $.Values.securityContext }}
674
+ {{- with .securityContext | default $.Values.st2actionrunner.securityContext | default $.Values.securityContext }}
672
675
securityContext : {{- toYaml . | nindent 10 }}
673
676
{{- end }}
674
677
{{- if $.Values.jobs.env }}
@@ -718,7 +721,7 @@ spec:
718
721
{{- with $.Values.dnsConfig }}
719
722
dnsConfig : {{- toYaml . | nindent 8 }}
720
723
{{- end }}
721
- {{- with $.Values.podSecurityContext }}
724
+ {{- with $.Values.jobs.podSecurityContext | default $.Values.st2actionrunner.podSecurityContext | default $.Values. podSecurityContext }}
722
725
securityContext : {{- toYaml . | nindent 8 }}
723
726
{{- end }}
724
727
{{- with $.Values.jobs.nodeSelector }}
0 commit comments