9
9
selector :
10
10
matchLabels :
11
11
app : ccm-linode
12
+ {{- with .Values.updateStrategy }}
13
+ updateStrategy :
14
+ {{- toYaml . | nindent 4 }}
15
+ {{- end }}
12
16
template :
13
17
metadata :
14
18
labels :
@@ -31,14 +35,14 @@ spec:
31
35
tolerations :
32
36
{{- toYaml . | nindent 8 }}
33
37
{{- end }}
34
- hostNetwork : true
38
+ hostNetwork : {{ default true .Values.enableHostNetwork }}
35
39
containers :
36
40
- image : {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}
37
41
imagePullPolicy : {{ .Values.image.pullPolicy }}
38
42
name : ccm-linode
39
43
args :
40
44
- --leader-elect-resource-lock=leases
41
- - --v=3
45
+ - --v={{ default 3 .Values.logVerbosity }}
42
46
- --secure-port=10253
43
47
- --webhook-secure-port=0
44
48
{{- with .Values.linodegoDebug }}
@@ -106,10 +110,21 @@ spec:
106
110
{{- if .Values.nodeBalancerBackendIPv4Subnet }}
107
111
- --nodebalancer-backend-ipv4-subnet={{ .Values.nodeBalancerBackendIPv4Subnet }}
108
112
{{- end }}
113
+ {{- if .Values.extraArgs }}
114
+ {{- toYaml .Values.extraArgs | nindent 12 }}
115
+ {{- end }}
109
116
{{- with .Values.containerSecurityContext }}
110
117
securityContext :
111
118
{{- toYaml . | nindent 12 }}
112
119
{{- end }}
120
+ {{- with .Values.readinessProbe }}
121
+ readinessProbe :
122
+ {{- toYaml . | nindent 12 }}
123
+ {{- end }}
124
+ {{- with .Values.livenessProbe }}
125
+ livenessProbe :
126
+ {{- toYaml . | nindent 12 }}
127
+ {{- end }}
113
128
{{- with .Values.resources }}
114
129
resources :
115
130
{{- toYaml . | nindent 12 }}
@@ -135,9 +150,13 @@ spec:
135
150
{{- toYaml . | nindent 12 }}
136
151
{{- end}}
137
152
volumes :
153
+ {{- with .Values.k8sVolume }}
154
+ {{- toYaml . | nindent 8 }}
155
+ {{- else }}
138
156
- name : k8s
139
157
hostPath :
140
158
path : /etc/kubernetes
159
+ {{- end }}
141
160
{{- with .Values.volumes}}
142
161
{{- toYaml . | nindent 8 }}
143
162
{{- end}}
0 commit comments