Merge pull request #97804 from jayunit100/windows-node-selector
adding windows os selector to the dnsPolicy tests
This commit is contained in:
@@ -30,7 +30,7 @@ import (
|
|||||||
"github.com/onsi/ginkgo"
|
"github.com/onsi/ginkgo"
|
||||||
)
|
)
|
||||||
|
|
||||||
var _ = SIGDescribe("DNS", func() {
|
var _ = SIGDescribe("[Feature:Windows] DNS", func() {
|
||||||
|
|
||||||
ginkgo.BeforeEach(func() {
|
ginkgo.BeforeEach(func() {
|
||||||
e2eskipper.SkipUnlessNodeOSDistroIs("windows")
|
e2eskipper.SkipUnlessNodeOSDistroIs("windows")
|
||||||
@@ -50,6 +50,9 @@ var _ = SIGDescribe("DNS", func() {
|
|||||||
Nameservers: []string{testInjectedIP},
|
Nameservers: []string{testInjectedIP},
|
||||||
Searches: []string{testSearchPath},
|
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{})
|
testUtilsPod, err := f.ClientSet.CoreV1().Pods(f.Namespace.Name).Create(context.TODO(), testUtilsPod, metav1.CreateOptions{})
|
||||||
framework.ExpectNoError(err)
|
framework.ExpectNoError(err)
|
||||||
framework.Logf("Created pod %v", testUtilsPod)
|
framework.Logf("Created pod %v", testUtilsPod)
|
||||||
|
Reference in New Issue
Block a user