Skip to content

Commit

Permalink
chore: Allow to set accountServiceAccountToken in ServiceAccount
Browse files Browse the repository at this point in the history
Signed-off-by: kahirokunn <[email protected]>
  • Loading branch information
kahirokunn committed May 29, 2023
1 parent 31c6df4 commit 6afc566
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@ metadata:
#annotations:
# eks.amazonaws.com/role-arn: arn:<partition>:iam::<account>:role/ebs-csi-role
{{- end }}
{{- if .Values.controller.serviceAccount.automountServiceAccountToken }}
automountServiceAccountToken: {{ .Values.controller.serviceAccount.automountServiceAccountToken }}
{{- end }}
{{- end -}}
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ metadata:
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- if .Values.node.serviceAccount.automountServiceAccountToken }}
automountServiceAccountToken: {{ .Values.node.serviceAccount.automountServiceAccountToken }}
{{- end }}
{{- end -}}
2 changes: 2 additions & 0 deletions charts/aws-ebs-csi-driver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ controller:
create: true
name: ebs-csi-controller-sa
annotations: {}
automountServiceAccountToken: false
tolerations:
- key: CriticalAddonsOnly
operator: Exists
Expand Down Expand Up @@ -300,6 +301,7 @@ node:
create: true
name: ebs-csi-node-sa
annotations: {}
automountServiceAccountToken: false
enableWindows: false
# The "maximum number of attachable volumes" per node
volumeAttachLimit:
Expand Down

0 comments on commit 6afc566

Please sign in to comment.