Skip to content

Commit bbad06b

Browse files
committed
feat: add node.maxUnavailable parameter in chart config
1 parent a628f71 commit bbad06b

13 files changed

+19
-7
lines changed
50 Bytes
Binary file not shown.

charts/latest/azurefile-csi-driver/templates/csi-azurefile-controller.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ spec:
1919
matchLabels:
2020
{{- include "azurefile.selectorLabels" . | nindent 6 }}
2121
app: {{ .Values.controller.name }}
22+
strategy:
23+
type: {{ .Values.controller.strategyType }}
2224
template:
2325
metadata:
2426
labels:

charts/latest/azurefile-csi-driver/templates/csi-azurefile-node-windows-hostprocess.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ spec:
1818
updateStrategy:
1919
rollingUpdate:
2020
maxUnavailable: {{ .Values.node.maxUnavailable }}
21-
type: RollingUpdate
21+
type: {{ .Values.node.strategyType }}
2222
selector:
2323
matchLabels:
2424
app: {{ .Values.windows.dsName }}

charts/latest/azurefile-csi-driver/templates/csi-azurefile-node-windows.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ spec:
1818
updateStrategy:
1919
rollingUpdate:
2020
maxUnavailable: {{ .Values.node.maxUnavailable }}
21-
type: RollingUpdate
21+
type: {{ .Values.node.strategyType }}
2222
selector:
2323
matchLabels:
2424
app: {{ .Values.windows.dsName }}

charts/latest/azurefile-csi-driver/templates/csi-azurefile-node.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ spec:
1818
updateStrategy:
1919
rollingUpdate:
2020
maxUnavailable: {{ .Values.node.maxUnavailable }}
21-
type: RollingUpdate
21+
type: {{ .Values.node.strategyType }}
2222
selector:
2323
matchLabels:
2424
app: {{ .Values.linux.dsName }}

charts/latest/azurefile-csi-driver/templates/csi-snapshot-controller.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ spec:
2828
rollingUpdate:
2929
maxSurge: 0
3030
maxUnavailable: 1
31-
type: RollingUpdate
31+
type: {{ .Values.snapshot.snapshotController.strategyType }}
3232
template:
3333
metadata:
3434
labels:

charts/latest/azurefile-csi-driver/values.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ controller:
4646
cloudConfigSecretNamespace: kube-system
4747
allowEmptyCloudConfig: true
4848
replicas: 2
49+
strategyType: RollingUpdate
4950
hostNetwork: true # this setting could be disabled if controller does not depend on MSI setting
5051
metricsPort: 29614
5152
livenessProbe:
@@ -109,6 +110,8 @@ controller:
109110
effect: "NoSchedule"
110111

111112
node:
113+
strategyType: RollingUpdate
114+
maxUnavailable: 1
112115
cloudConfigSecretName: azure-cloud-provider
113116
cloudConfigSecretNamespace: kube-system
114117
allowEmptyCloudConfig: true
@@ -132,6 +135,7 @@ snapshot:
132135
snapshotController:
133136
name: csi-snapshot-controller
134137
replicas: 2
138+
strategyType: RollingUpdate
135139
labels: {}
136140
annotations: {}
137141
podLabels: {}
55 Bytes
Binary file not shown.

charts/v1.30.2/azurefile-csi-driver/templates/csi-azurefile-controller.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ spec:
1919
matchLabels:
2020
{{- include "azurefile.selectorLabels" . | nindent 6 }}
2121
app: {{ .Values.controller.name }}
22+
strategy:
23+
type: {{ .Values.controller.strategyType }}
2224
template:
2325
metadata:
2426
labels:

charts/v1.30.2/azurefile-csi-driver/templates/csi-azurefile-node-windows-hostprocess.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ spec:
1818
updateStrategy:
1919
rollingUpdate:
2020
maxUnavailable: {{ .Values.node.maxUnavailable }}
21-
type: RollingUpdate
21+
type: {{ .Values.node.strategyType }}
2222
selector:
2323
matchLabels:
2424
app: {{ .Values.windows.dsName }}

charts/v1.30.2/azurefile-csi-driver/templates/csi-azurefile-node-windows.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ spec:
1818
updateStrategy:
1919
rollingUpdate:
2020
maxUnavailable: {{ .Values.node.maxUnavailable }}
21-
type: RollingUpdate
21+
type: {{ .Values.node.strategyType }}
2222
selector:
2323
matchLabels:
2424
app: {{ .Values.windows.dsName }}

charts/v1.30.2/azurefile-csi-driver/templates/csi-snapshot-controller.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ spec:
2828
rollingUpdate:
2929
maxSurge: 0
3030
maxUnavailable: 1
31-
type: RollingUpdate
31+
type: {{ .Values.snapshot.snapshotController.strategyType }}
3232
template:
3333
metadata:
3434
labels:

charts/v1.30.2/azurefile-csi-driver/values.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ controller:
4646
cloudConfigSecretNamespace: kube-system
4747
allowEmptyCloudConfig: true
4848
replicas: 2
49+
strategyType: RollingUpdate
4950
hostNetwork: true # this setting could be disabled if controller does not depend on MSI setting
5051
metricsPort: 29614
5152
livenessProbe:
@@ -112,6 +113,8 @@ node:
112113
cloudConfigSecretName: azure-cloud-provider
113114
cloudConfigSecretNamespace: kube-system
114115
allowEmptyCloudConfig: true
116+
strategyType: RollingUpdate
117+
maxUnavailable: 1
115118
allowInlineVolumeKeyAccessWithIdentity: false
116119
metricsPort: 29615
117120
livenessProbe:
@@ -132,6 +135,7 @@ snapshot:
132135
snapshotController:
133136
name: csi-snapshot-controller
134137
replicas: 2
138+
strategyType: RollingUpdate
135139
labels: {}
136140
annotations: {}
137141
podLabels: {}

0 commit comments

Comments
 (0)