mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
adding windows os selector to the dnsPolicy tests
adding a feature selector to the windows Describe dns test
This commit is contained in:
parent
ff4234720d
commit
4ddd22c9c9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user