@@ -66,6 +66,7 @@ func (t *dnsFederationsConfigMapTest) run() {
66
66
t .labels = []string {"abc" , "ghi" }
67
67
valid1 := map [string ]string {
68
68
"Corefile" : fmt .Sprintf (`.:53 {
69
+ health
69
70
kubernetes %v in-addr.arpa ip6.arpa {
70
71
pods insecure
71
72
upstream
@@ -74,12 +75,13 @@ func (t *dnsFederationsConfigMapTest) run() {
74
75
federation %v {
75
76
abc def.com
76
77
}
77
- proxy . /etc/resolv.conf
78
+ forward . /etc/resolv.conf
78
79
}` , framework .TestContext .ClusterDNSDomain , framework .TestContext .ClusterDNSDomain )}
79
80
valid1m := map [string ]string {t .labels [0 ]: "def.com" }
80
81
81
82
valid2 := map [string ]string {
82
83
"Corefile" : fmt .Sprintf (`:53 {
84
+ health
83
85
kubernetes %v in-addr.arpa ip6.arpa {
84
86
pods insecure
85
87
upstream
@@ -88,7 +90,7 @@ func (t *dnsFederationsConfigMapTest) run() {
88
90
federation %v {
89
91
ghi xyz.com
90
92
}
91
- proxy . /etc/resolv.conf
93
+ forward . /etc/resolv.conf
92
94
}` , framework .TestContext .ClusterDNSDomain , framework .TestContext .ClusterDNSDomain )}
93
95
valid2m := map [string ]string {t .labels [1 ]: "xyz.com" }
94
96
@@ -228,15 +230,16 @@ func (t *dnsNameserverTest) run(isIPv6 bool) {
228
230
if t .name == "coredns" {
229
231
t .setConfigMap (& v1.ConfigMap {Data : map [string ]string {
230
232
"Corefile" : fmt .Sprintf (`.:53 {
233
+ health
231
234
kubernetes %v in-addr.arpa ip6.arpa {
232
235
pods insecure
233
236
upstream
234
237
fallthrough in-addr.arpa ip6.arpa
235
238
}
236
- proxy . %v
239
+ forward . %v
237
240
}
238
241
acme.local:53 {
239
- proxy . %v
242
+ forward . %v
240
243
}` , framework .TestContext .ClusterDNSDomain , t .dnsServerPod .Status .PodIP , t .dnsServerPod .Status .PodIP ),
241
244
}})
242
245
@@ -325,12 +328,13 @@ func (t *dnsPtrFwdTest) run(isIPv6 bool) {
325
328
if t .name == "coredns" {
326
329
t .setConfigMap (& v1.ConfigMap {Data : map [string ]string {
327
330
"Corefile" : fmt .Sprintf (`.:53 {
331
+ health
328
332
kubernetes %v in-addr.arpa ip6.arpa {
329
333
pods insecure
330
334
upstream
331
335
fallthrough in-addr.arpa ip6.arpa
332
336
}
333
- proxy . %v
337
+ forward . %v
334
338
}` , framework .TestContext .ClusterDNSDomain , t .dnsServerPod .Status .PodIP ),
335
339
}})
336
340
@@ -434,12 +438,13 @@ func (t *dnsExternalNameTest) run(isIPv6 bool) {
434
438
if t .name == "coredns" {
435
439
t .setConfigMap (& v1.ConfigMap {Data : map [string ]string {
436
440
"Corefile" : fmt .Sprintf (`.:53 {
441
+ health
437
442
kubernetes %v in-addr.arpa ip6.arpa {
438
443
pods insecure
439
444
upstream
440
445
fallthrough in-addr.arpa ip6.arpa
441
446
}
442
- proxy . %v
447
+ forward . %v
443
448
}` , framework .TestContext .ClusterDNSDomain , t .dnsServerPod .Status .PodIP ),
444
449
}})
445
450
0 commit comments