@@ -428,7 +428,7 @@ spec:
428428 - name : st2web
429429 image : ' {{ template "stackstorm-ha.imageRepository" . }}/st2web:{{ tpl (.Values.st2web.image.tag | default .Values.image.tag) . }}'
430430 imagePullPolicy : {{ .Values.image.pullPolicy }}
431- {{- with default .Values.securityContext .Values.st2web .securityContext }}
431+ {{- with .Values.st2web. securityContext | default .Values.securityContext }}
432432 securityContext : {{- toYaml . | nindent 10 }}
433433 {{- end }}
434434 ports :
@@ -515,7 +515,7 @@ spec:
515515 {{- with .Values.dnsConfig }}
516516 dnsConfig : {{- toYaml . | nindent 8 }}
517517 {{- end }}
518- {{- with default .Values.podSecurityContext .Values.st2client .podSecurityContext }}
518+ {{- with .Values.st2web. podSecurityContext | default .Values.podSecurityContext }}
519519 securityContext : {{- toYaml . | nindent 8 }}
520520 {{- end }}
521521 {{- with .Values.st2web.nodeSelector }}
@@ -1187,7 +1187,7 @@ spec:
11871187 - name : {{ $name }}
11881188 image : ' {{ template "stackstorm-ha.imageRepository" $ }}/st2sensorcontainer:{{ tpl ($sensor.image.tag | default $.Values.image.tag) $ }}'
11891189 imagePullPolicy : {{ $.Values.image.pullPolicy }}
1190- {{- with default $.Values. securityContext $sensor .securityContext }}
1190+ {{- with $sensor. securityContext | default $.Values .securityContext }}
11911191 securityContext : {{- toYaml . | nindent 10 }}
11921192 {{- end }}
11931193 {{- with $sensor.readinessProbe }}
@@ -1282,7 +1282,7 @@ spec:
12821282 {{- with $.Values.dnsConfig }}
12831283 dnsConfig : {{- toYaml . | nindent 8 }}
12841284 {{- end }}
1285- {{- with default $.Values. podSecurityContext $sensor .podSecurityContext }}
1285+ {{- with $sensor. podSecurityContext | default $.Values .podSecurityContext }}
12861286 securityContext : {{- toYaml . | nindent 8 }}
12871287 {{- end }}
12881288 {{- with $sensor.nodeSelector }}
@@ -1353,7 +1353,7 @@ spec:
13531353 image : ' {{ .image.repository | default (include "stackstorm-ha.imageRepository" $) }}/{{ .image.name | default "st2actionrunner" }}:{{ tpl (.image.tag | default $.Values.image.tag) $ }}'
13541354 {{- end }}
13551355 imagePullPolicy : {{ .Values.st2actionrunner.image.pullPolicy | default .Values.image.pullPolicy }}
1356- {{- with default .Values.securityContext .Values.st2actionrunner .securityContext }}
1356+ {{- with .Values.st2actionrunner. securityContext | default .Values.securityContext }}
13571357 securityContext : {{- toYaml . | nindent 10 }}
13581358 {{- end }}
13591359 # TODO: Add liveness/readiness probes (#3)
@@ -1436,7 +1436,7 @@ spec:
14361436 {{- with .Values.dnsConfig }}
14371437 dnsConfig : {{- toYaml . | nindent 8 }}
14381438 {{- end }}
1439- {{- with default .Values.podSecurityContext .Values.st2actionrunner .podSecurityContext }}
1439+ {{- with .Values.st2actionrunner. podSecurityContext | default .Values.podSecurityContext }}
14401440 securityContext : {{- toYaml . | nindent 8 }}
14411441 {{- end }}
14421442 {{- with .Values.st2actionrunner.nodeSelector }}
@@ -1600,7 +1600,7 @@ spec:
16001600 - name : generate-st2client-config
16011601 image : ' {{ template "stackstorm-ha.imageRepository" . }}/st2actionrunner:{{ tpl (.Values.st2client.image.tag | default (.Values.st2actionrunner.image.tag | default .Values.image.tag)) . }}'
16021602 imagePullPolicy : {{ .Values.image.pullPolicy }}
1603- {{- with .Values.securityContext }}
1603+ {{- with .Values.st2client.securityContext | default .Values.st2actionrunner.securityContext | default .Values. securityContext }}
16041604 securityContext : {{- toYaml . | nindent 10 }}
16051605 {{- end }}
16061606 envFrom :
@@ -1627,7 +1627,7 @@ spec:
16271627 - name : st2client
16281628 image : ' {{ template "stackstorm-ha.imageRepository" . }}/st2actionrunner:{{ tpl (.Values.st2client.image.tag | default .Values.image.tag) . }}'
16291629 imagePullPolicy : {{ .Values.image.pullPolicy }}
1630- {{- with default .Values.securityContext .Values.st2actionrunner.securityContext }}
1630+ {{- with .Values.st2client. securityContext | default .Values.st2actionrunner.securityContext | default .Values .securityContext }}
16311631 securityContext : {{- toYaml . | nindent 10 }}
16321632 {{- end }}
16331633 env :
@@ -1728,7 +1728,7 @@ spec:
17281728 {{- with .Values.dnsConfig }}
17291729 dnsConfig : {{- toYaml . | nindent 8 }}
17301730 {{- end }}
1731- {{- with default .Values.podSecurityContext .Values.st2client .podSecurityContext }}
1731+ {{- with .Values.st2client.podSecurityContext | default .Values.st2actionrunner. podSecurityContext | default .Values.podSecurityContext }}
17321732 securityContext : {{- toYaml . | nindent 8 }}
17331733 {{- end }}
17341734 {{- with .Values.st2client.nodeSelector }}
0 commit comments