Skip to content

Commit

Permalink
fix: helm chart nil pointer dereference for SA
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Gillson <tyler.gillson@gmail.com>
  • Loading branch information
TylerGillson committed May 1, 2024
1 parent 427a05c commit 42f47f3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions chart/validator-plugin-kubescape/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ spec:
securityContext: {{- toYaml .Values.controllerManager.manager.containerSecurityContext | nindent 10 }}
securityContext:
runAsNonRoot: true
{{- if .Values.auth.serviceAccountName }}
serviceAccountName: {{ .Values.auth.serviceAccountName }}
{{- else }}
serviceAccountName: {{ include "chart.fullname" . }}-controller-manager
{{- end }}
terminationGracePeriodSeconds: 10
volumes: {{- toYaml .Values.controllerManager.volumes | nindent 8 }}

0 comments on commit 42f47f3

Please sign in to comment.