aboutsummaryrefslogtreecommitdiff
path: root/plugin/k8s_external/apex_test.go
diff options
context:
space:
mode:
authorGravatar TomasKohout <tomas.kohout1995@gmail.com> 2022-08-30 20:59:27 +0200
committerGravatar GitHub <noreply@github.com> 2022-08-30 14:59:27 -0400
commit6782b7fb42efc979ab2649228a83c0ac20d50d5e (patch)
tree465f49c700aebcfb825227a3a45dfd38daace374 /plugin/k8s_external/apex_test.go
parentb218b56063a965dceeda2835b020f8672ba7e27a (diff)
downloadcoredns-6782b7fb42efc979ab2649228a83c0ac20d50d5e.tar.gz
coredns-6782b7fb42efc979ab2649228a83c0ac20d50d5e.tar.zst
coredns-6782b7fb42efc979ab2649228a83c0ac20d50d5e.zip
plugin/k8s_external: Resolve headless services (#5505)
*add option for resolving headless Services without external IPs in k8s_external Signed-off-by: Tomas Kohout <tomas.kohout1995@gmail.com>
Diffstat (limited to 'plugin/k8s_external/apex_test.go')
-rw-r--r--plugin/k8s_external/apex_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugin/k8s_external/apex_test.go b/plugin/k8s_external/apex_test.go
index 57513e3f8..ab0818708 100644
--- a/plugin/k8s_external/apex_test.go
+++ b/plugin/k8s_external/apex_test.go
@@ -17,6 +17,7 @@ func TestApex(t *testing.T) {
k.APIConn = &external{}
e := New()
+ e.headless = true
e.Zones = []string{"example.com."}
e.Next = test.NextHandler(dns.RcodeSuccess, nil)
e.externalFunc = k.External