Skip to content

Commit 0c19cd3

Browse files
authored
Add an Helm value to set awsAccessSecret not optional
1 parent a4128b7 commit 0c19cd3

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

charts/aws-mountpoint-s3-csi-driver/templates/node.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,19 +87,19 @@ spec:
8787
secretKeyRef:
8888
name: {{ .name }}
8989
key: {{ .keyId }}
90-
optional: true
90+
optional: {{ .optional }}
9191
- name: AWS_SECRET_ACCESS_KEY
9292
valueFrom:
9393
secretKeyRef:
9494
name: {{ .name }}
9595
key: {{ .accessKey }}
96-
optional: true
96+
optional: {{ .optional }}
9797
- name: AWS_SESSION_TOKEN
9898
valueFrom:
9999
secretKeyRef:
100100
name: {{ .name }}
101101
key: {{ .sessionToken }}
102-
optional: true
102+
optional: {{ .optional }}
103103
{{- end }}
104104
volumeMounts:
105105
- name: kubelet-dir

charts/aws-mountpoint-s3-csi-driver/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ awsAccessSecret:
102102
keyId: key_id
103103
accessKey: access_key
104104
sessionToken: session_token
105+
optional: true
105106

106107
# The default IPv4 address in the credentials URI is in accordance to the references below:
107108
# Doc: https://docs.aws.amazon.com/eks/latest/userguide/pod-id-agent-setup.html

0 commit comments

Comments
 (0)