99 selector :
1010 matchLabels :
1111 app : ccm-linode
12+ {{- with .Values.updateStrategy }}
13+ updateStrategy :
14+ {{- toYaml . | nindent 4 }}
15+ {{- end }}
1216 template :
1317 metadata :
1418 labels :
@@ -31,14 +35,14 @@ spec:
3135 tolerations :
3236 {{- toYaml . | nindent 8 }}
3337 {{- end }}
34- hostNetwork : true
38+ hostNetwork : {{ default true .Values.enableHostNetwork }}
3539 containers :
3640 - image : {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}
3741 imagePullPolicy : {{ .Values.image.pullPolicy }}
3842 name : ccm-linode
3943 args :
4044 - --leader-elect-resource-lock=leases
41- - --v=3
45+ - --v={{ default 3 .Values.logVerbosity }}
4246 - --secure-port=10253
4347 - --webhook-secure-port=0
4448 {{- with .Values.linodegoDebug }}
@@ -106,10 +110,21 @@ spec:
106110 {{- if .Values.nodeBalancerBackendIPv4Subnet }}
107111 - --nodebalancer-backend-ipv4-subnet={{ .Values.nodeBalancerBackendIPv4Subnet }}
108112 {{- end }}
113+ {{- if .Values.extraArgs }}
114+ {{- toYaml .Values.extraArgs | nindent 12 }}
115+ {{- end }}
109116 {{- with .Values.containerSecurityContext }}
110117 securityContext :
111118 {{- toYaml . | nindent 12 }}
112119 {{- 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 }}
113128 {{- with .Values.resources }}
114129 resources :
115130 {{- toYaml . | nindent 12 }}
@@ -135,9 +150,13 @@ spec:
135150 {{- toYaml . | nindent 12 }}
136151 {{- end}}
137152 volumes :
153+ {{- with .Values.k8sVolume }}
154+ {{- toYaml . | nindent 8 }}
155+ {{- else }}
138156 - name : k8s
139157 hostPath :
140158 path : /etc/kubernetes
159+ {{- end }}
141160 {{- with .Values.volumes}}
142161 {{- toYaml . | nindent 8 }}
143162 {{- end}}
0 commit comments