@@ -428,7 +428,7 @@ spec:
428
428
- name : st2web
429
429
image : ' {{ template "stackstorm-ha.imageRepository" . }}/st2web:{{ tpl (.Values.st2web.image.tag | default .Values.image.tag) . }}'
430
430
imagePullPolicy : {{ .Values.image.pullPolicy }}
431
- {{- with default .Values.securityContext .Values.st2web .securityContext }}
431
+ {{- with .Values.st2web. securityContext | default .Values.securityContext }}
432
432
securityContext : {{- toYaml . | nindent 10 }}
433
433
{{- end }}
434
434
ports :
@@ -515,7 +515,7 @@ spec:
515
515
{{- with .Values.dnsConfig }}
516
516
dnsConfig : {{- toYaml . | nindent 8 }}
517
517
{{- end }}
518
- {{- with default .Values.podSecurityContext .Values.st2client .podSecurityContext }}
518
+ {{- with .Values.st2web. podSecurityContext | default .Values.podSecurityContext }}
519
519
securityContext : {{- toYaml . | nindent 8 }}
520
520
{{- end }}
521
521
{{- with .Values.st2web.nodeSelector }}
@@ -1187,7 +1187,7 @@ spec:
1187
1187
- name : {{ $name }}
1188
1188
image : ' {{ template "stackstorm-ha.imageRepository" $ }}/st2sensorcontainer:{{ tpl ($sensor.image.tag | default $.Values.image.tag) $ }}'
1189
1189
imagePullPolicy : {{ $.Values.image.pullPolicy }}
1190
- {{- with default $.Values. securityContext $sensor .securityContext }}
1190
+ {{- with $sensor. securityContext | default $.Values .securityContext }}
1191
1191
securityContext : {{- toYaml . | nindent 10 }}
1192
1192
{{- end }}
1193
1193
{{- with $sensor.readinessProbe }}
@@ -1282,7 +1282,7 @@ spec:
1282
1282
{{- with $.Values.dnsConfig }}
1283
1283
dnsConfig : {{- toYaml . | nindent 8 }}
1284
1284
{{- end }}
1285
- {{- with default $.Values. podSecurityContext $sensor .podSecurityContext }}
1285
+ {{- with $sensor. podSecurityContext | default $.Values .podSecurityContext }}
1286
1286
securityContext : {{- toYaml . | nindent 8 }}
1287
1287
{{- end }}
1288
1288
{{- with $sensor.nodeSelector }}
@@ -1353,7 +1353,7 @@ spec:
1353
1353
image : ' {{ .image.repository | default (include "stackstorm-ha.imageRepository" $) }}/{{ .image.name | default "st2actionrunner" }}:{{ tpl (.image.tag | default $.Values.image.tag) $ }}'
1354
1354
{{- end }}
1355
1355
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 }}
1357
1357
securityContext : {{- toYaml . | nindent 10 }}
1358
1358
{{- end }}
1359
1359
# TODO: Add liveness/readiness probes (#3)
@@ -1436,7 +1436,7 @@ spec:
1436
1436
{{- with .Values.dnsConfig }}
1437
1437
dnsConfig : {{- toYaml . | nindent 8 }}
1438
1438
{{- end }}
1439
- {{- with default .Values.podSecurityContext .Values.st2actionrunner .podSecurityContext }}
1439
+ {{- with .Values.st2actionrunner. podSecurityContext | default .Values.podSecurityContext }}
1440
1440
securityContext : {{- toYaml . | nindent 8 }}
1441
1441
{{- end }}
1442
1442
{{- with .Values.st2actionrunner.nodeSelector }}
@@ -1600,7 +1600,7 @@ spec:
1600
1600
- name : generate-st2client-config
1601
1601
image : ' {{ template "stackstorm-ha.imageRepository" . }}/st2actionrunner:{{ tpl (.Values.st2client.image.tag | default (.Values.st2actionrunner.image.tag | default .Values.image.tag)) . }}'
1602
1602
imagePullPolicy : {{ .Values.image.pullPolicy }}
1603
- {{- with .Values.securityContext }}
1603
+ {{- with .Values.st2client.securityContext | default .Values.st2actionrunner.securityContext | default .Values. securityContext }}
1604
1604
securityContext : {{- toYaml . | nindent 10 }}
1605
1605
{{- end }}
1606
1606
envFrom :
@@ -1627,7 +1627,7 @@ spec:
1627
1627
- name : st2client
1628
1628
image : ' {{ template "stackstorm-ha.imageRepository" . }}/st2actionrunner:{{ tpl (.Values.st2client.image.tag | default .Values.image.tag) . }}'
1629
1629
imagePullPolicy : {{ .Values.image.pullPolicy }}
1630
- {{- with default .Values.securityContext .Values.st2actionrunner.securityContext }}
1630
+ {{- with .Values.st2client. securityContext | default .Values.st2actionrunner.securityContext | default .Values .securityContext }}
1631
1631
securityContext : {{- toYaml . | nindent 10 }}
1632
1632
{{- end }}
1633
1633
env :
@@ -1728,7 +1728,7 @@ spec:
1728
1728
{{- with .Values.dnsConfig }}
1729
1729
dnsConfig : {{- toYaml . | nindent 8 }}
1730
1730
{{- end }}
1731
- {{- with default .Values.podSecurityContext .Values.st2client .podSecurityContext }}
1731
+ {{- with .Values.st2client.podSecurityContext | default .Values.st2actionrunner. podSecurityContext | default .Values.podSecurityContext }}
1732
1732
securityContext : {{- toYaml . | nindent 8 }}
1733
1733
{{- end }}
1734
1734
{{- with .Values.st2client.nodeSelector }}
0 commit comments