33 lines
1.3 KiB
Diff
33 lines
1.3 KiB
Diff
diff -rtuN charts/aws-efs-csi-driver.orig/templates/controller-deployment.yaml charts/aws-efs-csi-driver/templates/controller-deployment.yaml
|
|
--- charts/aws-efs-csi-driver.orig/templates/controller-deployment.yaml 2023-08-23 11:32:48.964952023 +0000
|
|
+++ charts/aws-efs-csi-driver/templates/controller-deployment.yaml 2023-08-23 11:32:48.968285371 +0000
|
|
@@ -76,9 +76,14 @@
|
|
- name: AWS_USE_FIPS_ENDPOINT
|
|
value: "true"
|
|
{{- end }}
|
|
+ {{- if .Values.controller.extraEnv }}
|
|
+ {{- toYaml .Values.controller.extraEnv | nindent 12 }}
|
|
+ {{- end }}
|
|
volumeMounts:
|
|
- name: socket-dir
|
|
mountPath: /var/lib/csi/sockets/pluginproxy/
|
|
+ - name: aws-token
|
|
+ mountPath: /var/run/secrets/sts.amazonaws.com/serviceaccount/
|
|
ports:
|
|
- name: healthz
|
|
containerPort: {{ .Values.controller.healthPort }}
|
|
@@ -137,6 +142,13 @@
|
|
volumes:
|
|
- name: socket-dir
|
|
emptyDir: {}
|
|
+ - name: aws-token
|
|
+ projected:
|
|
+ sources:
|
|
+ - serviceAccountToken:
|
|
+ path: token
|
|
+ expirationSeconds: 86400
|
|
+ audience: "sts.amazonaws.com"
|
|
{{- with .Values.controller.affinity }}
|
|
affinity: {{- toYaml . | nindent 8 }}
|
|
{{- end }}
|