diff --git a/templates/deployment.yaml b/templates/deployment.yaml index 0226c79..dff79cb 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -46,8 +46,8 @@ spec: {{- if .Values.priorityClassName }} priorityClassName: "{{ .Values.priorityClassName }}" {{- end }} - {{- if .Values.podSecurityContext.enabled }} - securityContext: {{ omit .Values.podSecurityContext "enabled" | toYaml | nindent 8 }} + {{- if .Values.securityContext.enabled }} + securityContext: {{ omit .Values.securityContext "enabled" | toYaml | nindent 8 }} {{- end }} {{- with .Values.initContainers }} initContainers: