mirror of
https://github.com/coredns/coredns.git
synced 2025-12-06 10:25:10 -05:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user