adding windows os selector to the dnsPolicy tests

adding a feature selector to the windows Describe dns test
This commit is contained in:
jayunit100 2021-01-07 06:02:31 -08:00 committed by jay vyas
parent ff4234720d
commit 4ddd22c9c9

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)