@@ -74,17 +74,17 @@ spec:
74
74
- " --nodeid=$(KUBE_NODE_NAME)"
75
75
- " --provider-volume={{ .Values.windows.providersDir }}"
76
76
- " --additional-provider-volume-paths={{ join " ," .Values.windows.additionalProvidersDirs }}"
77
- {{- if and (semverCompare ">= v0.0.15-0" .Values.windows.image.tag) .Values.enableSecretRotation }}
77
+ {{- if .Values.enableSecretRotation }}
78
78
- " --enable-secret-rotation={{ .Values.enableSecretRotation }}"
79
79
{{- end }}
80
- {{- if and (semverCompare ">= v0.0.15-0" .Values.windows.image.tag) .Values.rotationPollInterval }}
80
+ {{- if .Values.rotationPollInterval }}
81
81
- " --rotation-poll-interval={{ .Values.rotationPollInterval }}"
82
82
{{- end }}
83
83
- " --metrics-addr={{ .Values.windows.metricsAddr }}"
84
- {{- if and (semverCompare ">= v0.0.22-0" .Values.windows.image.tag) .Values.providerHealthCheck }}
84
+ {{- if .Values.providerHealthCheck }}
85
85
- " --provider-health-check={{ .Values.providerHealthCheck }}"
86
86
{{- end }}
87
- {{- if and (semverCompare ">= v0.0.22-0" .Values.windows.image.tag) .Values.providerHealthCheckInterval }}
87
+ {{- if .Values.providerHealthCheckInterval }}
88
88
- " --provider-health-check-interval={{ .Values.providerHealthCheckInterval }}"
89
89
{{- end }}
90
90
{{- if .Values.maxCallRecvMsgSize }}
@@ -102,7 +102,6 @@ spec:
102
102
apiVersion : v1
103
103
fieldPath : spec.nodeName
104
104
imagePullPolicy : {{ .Values.windows.image.pullPolicy }}
105
- {{- if semverCompare ">= v0.0.9-0" .Values.windows.image.tag }}
106
105
ports :
107
106
- containerPort : {{ .Values.livenessProbe.port }}
108
107
name : healthz
@@ -118,7 +117,6 @@ spec:
118
117
initialDelaySeconds : 30
119
118
timeoutSeconds : 10
120
119
periodSeconds : 15
121
- {{- end }}
122
120
volumeMounts :
123
121
- name : plugin-dir
124
122
mountPath : C:\csi
@@ -140,7 +138,6 @@ spec:
140
138
resources :
141
139
{{ toYaml . | indent 12 }}
142
140
{{- end }}
143
- {{- if semverCompare ">= v0.0.9-0" .Values.windows.image.tag }}
144
141
- name : liveness-probe
145
142
{{- if .Values.windows.livenessProbeImage.digest }}
146
143
image : " {{ .Values.windows.livenessProbeImage.repository }}@{{ .Values.windows.livenessProbeImage.digest }}"
@@ -160,7 +157,6 @@ spec:
160
157
resources :
161
158
{{ toYaml . | indent 12 }}
162
159
{{- end }}
163
- {{- end }}
164
160
{{- if .Values.windows.priorityClassName }}
165
161
priorityClassName : {{ .Values.windows.priorityClassName | quote }}
166
162
{{- end }}
0 commit comments