@@ -6,6 +6,9 @@ metadata:
6
6
name : efs-csi-controller
7
7
labels :
8
8
app.kubernetes.io/name : {{ include "aws-efs-csi-driver.name" . }}
9
+ {{- with .Values.controller.additionalLabels }}
10
+ {{ toYaml . | nindent 4 }}
11
+ {{- end }}
9
12
spec :
10
13
replicas : {{ .Values.replicaCount }}
11
14
selector :
@@ -23,10 +26,16 @@ spec:
23
26
app : efs-csi-controller
24
27
app.kubernetes.io/name : {{ include "aws-efs-csi-driver.name" . }}
25
28
app.kubernetes.io/instance : {{ .Release.Name }}
29
+ {{- with .Values.controller.podLabels }}
30
+ {{ toYaml . | nindent 8 }}
31
+ {{- end }}
26
32
{{- with .Values.controller.podAnnotations }}
27
33
annotations : {{- toYaml . | nindent 8 }}
28
34
{{- end }}
29
35
spec :
36
+ {{- if hasKey .Values.controller "hostNetwork" }}
37
+ hostNetwork : {{ .Values.controller.hostNetwork }}
38
+ {{- end }}
30
39
{{- if .Values.imagePullSecrets }}
31
40
imagePullSecrets :
32
41
{{- range .Values.imagePullSecrets }}
@@ -39,18 +48,26 @@ spec:
39
48
{{- toYaml . | nindent 8 }}
40
49
{{- end }}
41
50
serviceAccountName : {{ .Values.controller.serviceAccount.name }}
42
- priorityClassName : system-cluster-critical
51
+ priorityClassName : {{ .Values.controller.priorityClassName | default " system-cluster-critical" }}
43
52
{{- with .Values.controller.tolerations }}
44
53
tolerations : {{- toYaml . | nindent 8 }}
45
54
{{- end }}
46
55
{{- with .Values.controller.securityContext }}
47
56
securityContext :
48
57
{{- toYaml . | nindent 8 }}
49
58
{{- end }}
59
+ {{- if .Values.controller.dnsPolicy }}
60
+ dnsPolicy : {{ .Values.controller.dnsPolicy }}
61
+ {{- end }}
62
+ {{- with .Values.controller.dnsConfig }}
63
+ dnsConfig : {{- toYaml . | nindent 8 }}
64
+ {{- end }}
50
65
containers :
51
66
- name : efs-plugin
67
+ {{- with .Values.controller.containerSecurityContext }}
52
68
securityContext :
53
- privileged : true
69
+ {{- toYaml . | nindent 12 }}
70
+ {{- end }}
54
71
image : {{ printf "%s:%s" .Values.image.repository (default (printf "v%s" .Chart.AppVersion) (toString .Values.image.tag)) }}
55
72
imagePullPolicy : {{ .Values.image.pullPolicy }}
56
73
args :
@@ -105,6 +122,12 @@ spec:
105
122
- --extra-create-metadata
106
123
{{- end }}
107
124
- --leader-election
125
+ {{- if hasKey .Values.controller "leaderElectionRenewDeadline" }}
126
+ - --leader-election-renew-deadline={{ .Values.controller.leaderElectionRenewDeadline }}
127
+ {{- end }}
128
+ {{- if hasKey .Values.controller "leaderElectionLeaseDuration" }}
129
+ - --leader-election-lease-duration={{ .Values.controller.leaderElectionLeaseDuration }}
130
+ {{- end }}
108
131
env :
109
132
- name : ADDRESS
110
133
value : /var/lib/csi/sockets/pluginproxy/csi.sock
0 commit comments