diff --git a/charts/aws-efs-csi-driver/templates/controller-deployment.yaml b/charts/aws-efs-csi-driver/templates/controller-deployment.yaml index ab9dbb6c2..9d3037ab5 100644 --- a/charts/aws-efs-csi-driver/templates/controller-deployment.yaml +++ b/charts/aws-efs-csi-driver/templates/controller-deployment.yaml @@ -76,9 +76,15 @@ spec: - name: AWS_USE_FIPS_ENDPOINT value: "true" {{- end }} + {{- with .Values.controller.env }} + {{- toYaml . | nindent 12 }} + {{- end }} volumeMounts: - name: socket-dir mountPath: /var/lib/csi/sockets/pluginproxy/ + {{- with .Values.controller.volumeMounts }} + {{- toYaml . | nindent 12 }} + {{- end }} ports: - name: healthz containerPort: {{ .Values.controller.healthPort }} @@ -127,6 +133,9 @@ spec: volumeMounts: - name: socket-dir mountPath: /csi + {{- with .Values.controller.volumeMounts }} + {{- toYaml . | nindent 12 }} + {{- end }} {{- with .Values.sidecars.livenessProbe.resources }} resources: {{ toYaml . | nindent 12 }} {{- end }} @@ -137,6 +146,9 @@ spec: volumes: - name: socket-dir emptyDir: {} + {{- with .Values.controller.volumes }} + {{- toYaml . | nindent 8 }} + {{- end }} {{- with .Values.controller.affinity }} affinity: {{- toYaml . | nindent 8 }} {{- end }} diff --git a/charts/aws-efs-csi-driver/templates/node-daemonset.yaml b/charts/aws-efs-csi-driver/templates/node-daemonset.yaml index 5eb8a9bde..89259137c 100644 --- a/charts/aws-efs-csi-driver/templates/node-daemonset.yaml +++ b/charts/aws-efs-csi-driver/templates/node-daemonset.yaml @@ -85,6 +85,9 @@ spec: - name: AWS_USE_FIPS_ENDPOINT value: "true" {{- end }} + {{- with .Values.node.env }} + {{- toYaml . | nindent 12 }} + {{- end }} volumeMounts: - name: kubelet-dir mountPath: /var/lib/kubelet @@ -97,6 +100,9 @@ spec: mountPath: /var/amazon/efs - name: efs-utils-config-legacy mountPath: /etc/amazon/efs-legacy + {{- with .Values.node.volumeMounts }} + {{- toYaml . | nindent 12 }} + {{- end }} ports: - name: healthz containerPort: {{ .Values.node.healthPort }} @@ -182,3 +188,6 @@ spec: hostPath: path: /etc/amazon/efs type: DirectoryOrCreate + {{- with .Values.node.volumes }} + {{- toYaml . | nindent 8 }} + {{- end }} \ No newline at end of file diff --git a/charts/aws-efs-csi-driver/values.yaml b/charts/aws-efs-csi-driver/values.yaml index 4804e339c..b4fa9681d 100644 --- a/charts/aws-efs-csi-driver/values.yaml +++ b/charts/aws-efs-csi-driver/values.yaml @@ -83,6 +83,9 @@ controller: - key: efs.csi.aws.com/agent-not-ready operator: Exists affinity: {} + env: [] + volumes: [] + volumeMounts: [] # Specifies whether a service account should be created serviceAccount: create: true @@ -166,6 +169,9 @@ node: runAsUser: 0 runAsGroup: 0 fsGroup: 0 + env: [] + volumes: [] + volumeMounts: [] storageClasses: [] # Add StorageClass resources like: