Skip to content

Commit 142a464

Browse files
committed
Expose env, volume, and volume mounts for the efs controller and deamonset
1 parent a99fea1 commit 142a464

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
@@ -76,9 +76,15 @@ spec:
7676
- name: AWS_USE_FIPS_ENDPOINT
7777
value: "true"
7878
{{- end }}
79+
{{- with .Values.controller.env }}
80+
{{- toYaml . | nindent 12 }}
81+
{{- end }}
7982
volumeMounts:
8083
- name: socket-dir
8184
mountPath: /var/lib/csi/sockets/pluginproxy/
85+
{{- with .Values.controller.volumeMounts }}
86+
{{- toYaml . | nindent 12 }}
87+
{{- end }}
8288
ports:
8389
- name: healthz
8490
containerPort: {{ .Values.controller.healthPort }}
@@ -127,6 +133,9 @@ spec:
127133
volumeMounts:
128134
- name: socket-dir
129135
mountPath: /csi
136+
{{- with .Values.controller.volumeMounts }}
137+
{{- toYaml . | nindent 12 }}
138+
{{- end }}
130139
{{- with .Values.sidecars.livenessProbe.resources }}
131140
resources: {{ toYaml . | nindent 12 }}
132141
{{- end }}
@@ -137,6 +146,9 @@ spec:
137146
volumes:
138147
- name: socket-dir
139148
emptyDir: {}
149+
{{- with .Values.controller.volumes }}
150+
{{- toYaml . | nindent 8 }}
151+
{{- end }}
140152
{{- with .Values.controller.affinity }}
141153
affinity: {{- toYaml . | nindent 8 }}
142154
{{- end }}

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ spec:
8585
- name: AWS_USE_FIPS_ENDPOINT
8686
value: "true"
8787
{{- end }}
88+
{{- with .Values.node.env }}
89+
{{- toYaml . | nindent 12 }}
90+
{{- end }}
8891
volumeMounts:
8992
- name: kubelet-dir
9093
mountPath: /var/lib/kubelet
@@ -97,6 +100,9 @@ spec:
97100
mountPath: /var/amazon/efs
98101
- name: efs-utils-config-legacy
99102
mountPath: /etc/amazon/efs-legacy
103+
{{- with .Values.node.volumeMounts }}
104+
{{- toYaml . | nindent 12 }}
105+
{{- end }}
100106
ports:
101107
- name: healthz
102108
containerPort: {{ .Values.node.healthPort }}
@@ -182,3 +188,6 @@ spec:
182188
hostPath:
183189
path: /etc/amazon/efs
184190
type: DirectoryOrCreate
191+
{{- with .Values.node.volumes }}
192+
{{- toYaml . | nindent 8 }}
193+
{{- end }}

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ controller:
8383
- key: efs.csi.aws.com/agent-not-ready
8484
operator: Exists
8585
affinity: {}
86+
env: []
87+
volumes: []
88+
volumeMounts: []
8689
# Specifies whether a service account should be created
8790
serviceAccount:
8891
create: true
@@ -166,6 +169,9 @@ node:
166169
runAsUser: 0
167170
runAsGroup: 0
168171
fsGroup: 0
172+
env: []
173+
volumes: []
174+
volumeMounts: []
169175

170176
storageClasses: []
171177
# Add StorageClass resources like:

0 commit comments

Comments
 (0)