Skip to content

Commit c678963

Browse files
committed
feat: allow configuring the updateStrategy for the DaemonSet
1 parent 9169821 commit c678963

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

helm/provisioner/templates/daemonset_linux.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ spec:
1414
matchLabels:
1515
app.kubernetes.io/name: {{ template "provisioner.name" . }}
1616
app.kubernetes.io/instance: {{ .Release.Name }}
17+
updateStrategy:
18+
{{ toYaml .Values.updateStrategy | indent 4 }}
1719
template:
1820
metadata:
1921
labels:

helm/provisioner/templates/daemonset_windows.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ spec:
1515
matchLabels:
1616
app.kubernetes.io/name: {{ template "provisioner.name" . }}
1717
app.kubernetes.io/instance: {{ .Release.Name }}
18+
updateStrategy:
19+
{{ toYaml .Values.updateStrategy | indent 4 }}
1820
template:
1921
metadata:
2022
labels:

helm/provisioner/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,12 @@ hostPID: false
158158
# Ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
159159
initContainers: []
160160

161+
# Update strategy for the DaemonSet.
162+
updateStrategy:
163+
type: RollingUpdate
164+
rollingUpdate:
165+
maxUnavailable: 1
166+
161167
#
162168
# Configure Prometheus monitoring
163169
#

0 commit comments

Comments
 (0)