diff options
author | 2020-12-21 05:30:24 -0500 | |
---|---|---|
committer | 2020-12-21 02:30:24 -0800 | |
commit | 51c05679e69dacd745db2b1eb33be04d7b626959 (patch) | |
tree | 6ec0071b8378f31a0d96eeea4061e58723be2d6d /plugin/kubernetes/external_test.go | |
parent | 302434e3928219138313610c7faf9be5cc598129 (diff) | |
download | coredns-51c05679e69dacd745db2b1eb33be04d7b626959.tar.gz coredns-51c05679e69dacd745db2b1eb33be04d7b626959.tar.zst coredns-51c05679e69dacd745db2b1eb33be04d7b626959.zip |
plugin/kubernetes: Add support for dual stack ClusterIP Services (#4339)
* support dual stack clusterIPs
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
* stickler
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
* fix ClusterIPs make
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
Diffstat (limited to 'plugin/kubernetes/external_test.go')
-rw-r--r-- | plugin/kubernetes/external_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/kubernetes/external_test.go b/plugin/kubernetes/external_test.go index 4855cfc63..560983e4c 100644 --- a/plugin/kubernetes/external_test.go +++ b/plugin/kubernetes/external_test.go @@ -105,7 +105,7 @@ var svcIndexExternal = map[string][]*object.Service{ Name: "svc1", Namespace: "testns", Type: api.ServiceTypeClusterIP, - ClusterIP: "10.0.0.1", + ClusterIPs: []string{"10.0.0.1"}, ExternalIPs: []string{"1.2.3.4"}, Ports: []api.ServicePort{{Name: "http", Protocol: "tcp", Port: 80}}, }, @@ -115,7 +115,7 @@ var svcIndexExternal = map[string][]*object.Service{ Name: "svc6", Namespace: "testns", Type: api.ServiceTypeClusterIP, - ClusterIP: "10.0.0.3", + ClusterIPs: []string{"10.0.0.3"}, ExternalIPs: []string{"1:2::5"}, Ports: []api.ServicePort{{Name: "http", Protocol: "tcp", Port: 80}}, }, |