windows support smoking test

Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
pull/8643/head
Lyndon-Li 2025-01-22 13:41:31 +08:00
parent a9031eb13f
commit 43fcaa2706
1 changed files with 8 additions and 0 deletions

View File

@ -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",