Skip to content

Commit 38dc9b8

Browse files
Merge pull request #1165 from cnmcavoy/cnmcavoy/helm-volumes-and-mounts
Expose env, volume, and volume mounts in helm chart for the efs controller and deamonset
2 parents cc8b4c2 + 142a464 commit 38dc9b8

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

charts/aws-efs-csi-driver/templates/controller-deployment.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,15 @@ spec:
9393
- name: AWS_USE_FIPS_ENDPOINT
9494
value: "true"
9595
{{- end }}
96+
{{- with .Values.controller.env }}
97+
{{- toYaml . | nindent 12 }}
98+
{{- end }}
9699
volumeMounts:
97100
- name: socket-dir
98101
mountPath: /var/lib/csi/sockets/pluginproxy/
102+
{{- with .Values.controller.volumeMounts }}
103+
{{- toYaml . | nindent 12 }}
104+
{{- end }}
99105
ports:
100106
- name: healthz
101107
containerPort: {{ .Values.controller.healthPort }}
@@ -150,6 +156,9 @@ spec:
150156
volumeMounts:
151157
- name: socket-dir
152158
mountPath: /csi
159+
{{- with .Values.controller.volumeMounts }}
160+
{{- toYaml . | nindent 12 }}
161+
{{- end }}
153162
{{- with .Values.sidecars.livenessProbe.resources }}
154163
resources: {{ toYaml . | nindent 12 }}
155164
{{- end }}
@@ -160,6 +169,9 @@ spec:
160169
volumes:
161170
- name: socket-dir
162171
emptyDir: {}
172+
{{- with .Values.controller.volumes }}
173+
{{- toYaml . | nindent 8 }}
174+
{{- end }}
163175
{{- with .Values.controller.affinity }}
164176
affinity: {{- toYaml . | nindent 8 }}
165177
{{- end }}

charts/aws-efs-csi-driver/templates/node-daemonset.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ spec:
8888
- name: AWS_USE_FIPS_ENDPOINT
8989
value: "true"
9090
{{- end }}
91+
{{- with .Values.node.env }}
92+
{{- toYaml . | nindent 12 }}
93+
{{- end }}
9194
volumeMounts:
9295
- name: kubelet-dir
9396
mountPath: /var/lib/kubelet
@@ -100,6 +103,9 @@ spec:
100103
mountPath: /var/amazon/efs
101104
- name: efs-utils-config-legacy
102105
mountPath: /etc/amazon/efs-legacy
106+
{{- with .Values.node.volumeMounts }}
107+
{{- toYaml . | nindent 12 }}
108+
{{- end }}
103109
ports:
104110
- name: healthz
105111
containerPort: {{ .Values.node.healthPort }}
@@ -185,3 +191,6 @@ spec:
185191
hostPath:
186192
path: /etc/amazon/efs
187193
type: DirectoryOrCreate
194+
{{- with .Values.node.volumes }}
195+
{{- toYaml . | nindent 8 }}
196+
{{- end }}

charts/aws-efs-csi-driver/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ controller:
8989
- key: efs.csi.aws.com/agent-not-ready
9090
operator: Exists
9191
affinity: {}
92+
env: []
93+
volumes: []
94+
volumeMounts: []
9295
# Specifies whether a service account should be created
9396
serviceAccount:
9497
create: true
@@ -180,6 +183,9 @@ node:
180183
runAsUser: 0
181184
runAsGroup: 0
182185
fsGroup: 0
186+
env: []
187+
volumes: []
188+
volumeMounts: []
183189

184190
storageClasses: []
185191
# Add StorageClass resources like:

0 commit comments

Comments
 (0)