Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{{- if .Values.controller.serviceAccount.create }}
apiVersion: v1
kind: ServiceAccount
automountServiceAccountToken: {{ .Values.controller.serviceAccount.automountServiceAccountToken }}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better we do with check first like

{{- if .Values.node.serviceAccount.automountServiceAccountToken }}
automountServiceAccountToken: {{ .Values.node.serviceAccount.automountServiceAccountToken }}
{{- end }}

metadata:
name: {{ .Values.controller.serviceAccount.name }}
namespace: {{ .Release.Namespace }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{{- if .Values.node.serviceAccount.create }}
apiVersion: v1
kind: ServiceAccount
automountServiceAccountToken: {{ .Values.node.serviceAccount.automountServiceAccountToken }}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better we do with check first like

{{- if .Values.node.serviceAccount.automountServiceAccountToken }}
automountServiceAccountToken: {{ .Values.node.serviceAccount.automountServiceAccountToken }}
{{- end }}

metadata:
name: {{ .Values.node.serviceAccount.name }}
namespace: {{ .Release.Namespace }}
Expand Down
4 changes: 4 additions & 0 deletions charts/aws-efs-csi-driver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ controller:
# Specifies whether a service account should be created
serviceAccount:
create: true
# Automount API credentials for a Service Account.
automountServiceAccountToken: true
name: efs-csi-controller-sa
annotations: {}
## Enable if EKS IAM for SA is used
Expand Down Expand Up @@ -200,6 +202,8 @@ node:
# Specifies whether a service account should be created
serviceAccount:
create: true
# Automount API credentials for a Service Account.
automountServiceAccountToken: true
name: efs-csi-node-sa
annotations: {}
## Enable if EKS IAM for SA is used
Expand Down