Skip to content

Commit

Permalink
Restrict auto-mount of service account token in service account
Browse files Browse the repository at this point in the history
  • Loading branch information
michalschott committed Jan 16, 2025
1 parent b320ff1 commit 040f47f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/karpenter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ spec:
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
automountServiceAccountToken: true
serviceAccountName: {{ include "karpenter.serviceAccountName" . }}
{{- with .Values.podSecurityContext }}
securityContext:
Expand Down
1 change: 1 addition & 0 deletions charts/karpenter/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ metadata:
{{- end }}
{{- end }}
{{- end -}}
automountServiceAccountToken: false

0 comments on commit 040f47f

Please sign in to comment.