File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -48,16 +48,9 @@ var _ = SIGDescribe("DNS", func() {
48
48
ginkgo .By ("Creating a pod with dnsPolicy=None and customized dnsConfig..." )
49
49
testUtilsPod := generateDNSUtilsPod ()
50
50
testUtilsPod .Spec .DNSPolicy = v1 .DNSNone
51
- testNdotsValue := "2"
52
51
testUtilsPod .Spec .DNSConfig = & v1.PodDNSConfig {
53
52
Nameservers : []string {testInjectedIP },
54
53
Searches : []string {testSearchPath },
55
- Options : []v1.PodDNSConfigOption {
56
- {
57
- Name : "ndots" ,
58
- Value : & testNdotsValue ,
59
- },
60
- },
61
54
}
62
55
testUtilsPod , err := f .ClientSet .CoreV1 ().Pods (f .Namespace .Name ).Create (testUtilsPod )
63
56
framework .ExpectNoError (err )
@@ -88,7 +81,7 @@ var _ = SIGDescribe("DNS", func() {
88
81
if dnsRegex .MatchString (stdout ) {
89
82
match := dnsRegex .FindString (stdout )
90
83
91
- if ! strings .Contains (match , "ndots:2" ) {
84
+ if ! strings .Contains (match , testInjectedIP ) {
92
85
framework .Failf ("customized DNS options not found in ipconfig /all, got: %s" , match )
93
86
}
94
87
} else {
You can’t perform that action at this time.
0 commit comments