Skip to content

Commit

Permalink
Merge pull request #8643 from Lyndon-Li/windows-support-smoking-test
Browse files Browse the repository at this point in the history
Windows support smoking test
  • Loading branch information
ywk253100 authored Jan 24, 2025
2 parents 9afad9a + 43fcaa2 commit ec1eadc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/install/daemonset.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit ec1eadc

Please sign in to comment.