Merge pull request #97804 from jayunit100/windows-node-selector

adding windows os selector to the dnsPolicy tests
This commit is contained in:
Kubernetes Prow Robot 2021-01-07 11:51:13 -08:00 committed by GitHub
commit 84b4569390
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ import (
"github.com/onsi/ginkgo"
)
var _ = SIGDescribe("DNS", func() {
var _ = SIGDescribe("[Feature:Windows] DNS", func() {
ginkgo.BeforeEach(func() {
e2eskipper.SkipUnlessNodeOSDistroIs("windows")
@ -50,6 +50,9 @@ var _ = SIGDescribe("DNS", func() {
Nameservers: []string{testInjectedIP},
Searches: []string{testSearchPath},
}
testUtilsPod.Spec.NodeSelector = map[string]string{
"kubernetes.io/os": "windows",
}
testUtilsPod, err := f.ClientSet.CoreV1().Pods(f.Namespace.Name).Create(context.TODO(), testUtilsPod, metav1.CreateOptions{})
framework.ExpectNoError(err)
framework.Logf("Created pod %v", testUtilsPod)