Skip to content

Commit

Permalink
fix: allow not setting .Values.podSecurityContext for kyvernoPlugin s…
Browse files Browse the repository at this point in the history
…ubchart

Signed-off-by: Harald Skoglund <[email protected]>
  • Loading branch information
Harald Skoglund authored and Harald Skoglund committed Nov 9, 2023
1 parent 1c68da3 commit 90d8c96
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ spec:
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }}
{{- if .Values.podSecurityContext }}
securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "kyvernoplugin.serviceAccountName" . }}
automountServiceAccountToken: true
containers:
Expand Down

0 comments on commit 90d8c96

Please sign in to comment.