Skip to content

Commit 42f47f3

Browse files
committed
fix: helm chart nil pointer dereference for SA
Signed-off-by: Tyler Gillson <[email protected]>
1 parent 427a05c commit 42f47f3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

chart/validator-plugin-kubescape/templates/deployment.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,6 @@ spec:
6363
securityContext: {{- toYaml .Values.controllerManager.manager.containerSecurityContext | nindent 10 }}
6464
securityContext:
6565
runAsNonRoot: true
66-
{{- if .Values.auth.serviceAccountName }}
67-
serviceAccountName: {{ .Values.auth.serviceAccountName }}
68-
{{- else }}
6966
serviceAccountName: {{ include "chart.fullname" . }}-controller-manager
70-
{{- end }}
7167
terminationGracePeriodSeconds: 10
7268
volumes: {{- toYaml .Values.controllerManager.volumes | nindent 8 }}

0 commit comments

Comments
 (0)