From 43fcaa2706821ec3925e47f6c6dd03551d589fac Mon Sep 17 00:00:00 2001 From: Lyndon-Li Date: Wed, 22 Jan 2025 13:41:31 +0800 Subject: [PATCH] windows support smoking test Signed-off-by: Lyndon-Li --- pkg/install/daemonset.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkg/install/daemonset.go b/pkg/install/daemonset.go index 81b06b64c..593aee8eb 100644 --- a/pkg/install/daemonset.go +++ b/pkg/install/daemonset.go @@ -220,6 +220,14 @@ func DaemonSet(namespace string, opts ...podTemplateOption) *appsv1.DaemonSet { daemonSet.Spec.Template.Spec.OS = &corev1.PodOS{ Name: "windows", } + daemonSet.Spec.Template.Spec.Tolerations = []corev1.Toleration{ + { + Key: "os", + Operator: "Equal", + Effect: "NoSchedule", + Value: "windows", + }, + } } else { daemonSet.Spec.Template.Spec.NodeSelector = map[string]string{ "kubernetes.io/os": "linux",