2022-05-05 15:22:23 +00:00
|
|
|
diff -tuNr charts/aws-efs-csi-driver.orig/templates/controller-deployment.yaml charts/aws-efs-csi-driver/templates/controller-deployment.yaml
|
2022-08-24 15:13:39 +00:00
|
|
|
--- charts/aws-efs-csi-driver.orig/templates/controller-deployment.yaml 2022-08-24 13:58:54.208936918 +0200
|
|
|
|
+++ charts/aws-efs-csi-driver/templates/controller-deployment.yaml 2022-08-24 14:02:53.031437096 +0200
|
2022-05-05 15:22:23 +00:00
|
|
|
@@ -13,6 +13,10 @@
|
|
|
|
app: efs-csi-controller
|
|
|
|
app.kubernetes.io/name: {{ include "aws-efs-csi-driver.name" . }}
|
|
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
|
|
+ {{- with .Values.controller.updateStrategy }}
|
|
|
|
+ strategy:
|
|
|
|
+ type: {{ . }}
|
|
|
|
+ {{- end }}
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
2022-08-24 15:13:39 +00:00
|
|
|
@@ -65,9 +69,14 @@
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: spec.nodeName
|
2021-12-03 21:16:52 +00:00
|
|
|
+ {{- if .Values.controller.extraEnv }}
|
2022-05-05 15:22:23 +00:00
|
|
|
+ {{- toYaml .Values.controller.extraEnv | nindent 12 }}
|
2021-12-03 21:16:52 +00:00
|
|
|
+ {{- 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
|
2022-05-05 15:22:23 +00:00
|
|
|
containerPort: {{ .Values.controller.healthPort }}
|
2022-08-24 15:13:39 +00:00
|
|
|
@@ -118,6 +127,13 @@
|
2021-12-03 21:16:52 +00:00
|
|
|
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 }}
|
2022-05-05 15:22:23 +00:00
|
|
|
diff -tuNr charts/aws-efs-csi-driver.orig/templates/node-daemonset.yaml charts/aws-efs-csi-driver/templates/node-daemonset.yaml
|
2022-08-24 15:13:39 +00:00
|
|
|
--- charts/aws-efs-csi-driver.orig/templates/node-daemonset.yaml 2022-08-24 13:58:54.208936918 +0200
|
|
|
|
+++ charts/aws-efs-csi-driver/templates/node-daemonset.yaml 2022-08-24 14:03:42.095284086 +0200
|
2021-12-03 21:16:52 +00:00
|
|
|
@@ -40,15 +40,10 @@
|
|
|
|
{{- with .Values.node.nodeSelector }}
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
|
|
|
+ {{- with .Values.node.affinity }}
|
|
|
|
affinity:
|
|
|
|
- nodeAffinity:
|
|
|
|
- requiredDuringSchedulingIgnoredDuringExecution:
|
|
|
|
- nodeSelectorTerms:
|
|
|
|
- - matchExpressions:
|
|
|
|
- - key: eks.amazonaws.com/compute-type
|
|
|
|
- operator: NotIn
|
|
|
|
- values:
|
|
|
|
- - fargate
|
|
|
|
+ {{- . | toYaml | nindent 8 }}
|
|
|
|
+ {{- end }}
|
|
|
|
hostNetwork: true
|
|
|
|
dnsPolicy: {{ .Values.node.dnsPolicy }}
|
|
|
|
{{- with .Values.node.dnsConfig }}
|