Skip to content

Commit c13f703

Browse files
committed
feat(chart): make DaemonSet update strategy configurable in values.yaml
1 parent a8300e3 commit c13f703

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

charts/kube-ovn-v2/templates/_helpers.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Get IPs of master nodes from values
117117
{{- end -}}
118118
{{- end -}}
119119
{{- else -}}
120-
RollingUpdate
120+
{{- $.Values.ovsOvn.updateStrategy -}}
121121
{{- end -}}
122122
{{- end -}}
123123

charts/kube-ovn-v2/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,11 @@ ovsOvn:
398398
cpu: "2"
399399
memory: "1000Mi"
400400

401+
# -- ovs-ovn DaemonSet update strategy.
402+
# ref: https://kubernetes.io/docs/tasks/manage-daemon/update-daemon-set/#daemonset-update-strategy
403+
# @section -- OVS/OVN daemons configuration
404+
updateStrategy: "RollingUpdate"
405+
401406
# -- Disable auto-loading of kernel modules by OVS.
402407
# If this is disabled, you will have to enable the Open vSwitch kernel module yourself.
403408
# @section -- OVS/OVN daemons configuration

0 commit comments

Comments
 (0)