diff --git a/charts/application/templates/_podTemplate.tpl b/charts/application/templates/_podTemplate.tpl index 59f1db8..9bf535e 100644 --- a/charts/application/templates/_podTemplate.tpl +++ b/charts/application/templates/_podTemplate.tpl @@ -63,7 +63,7 @@ spec: {{- end }} securityContext: {{- if and $i.securityContext $.Values.initDefaults.securityContext }} - {{- toYaml (mergeOverwrite $.Values.initDefaults.securityContext $i.securityContext) | nindent 8 }} + {{- toYaml (merge $i.securityContext $.Values.initDefaults.securityContext) | nindent 8 }} {{- else }} {{- toYaml (or $i.securityContext $.Values.initDefaults.securityContext) | nindent 8 }} {{- end }}