aboutsummaryrefslogtreecommitdiff
path: root/plugin/kubernetes/external_test.go
diff options
context:
space:
mode:
authorGravatar Chris O'Haver <cohaver@infoblox.com> 2020-12-21 05:30:24 -0500
committerGravatar GitHub <noreply@github.com> 2020-12-21 02:30:24 -0800
commit51c05679e69dacd745db2b1eb33be04d7b626959 (patch)
tree6ec0071b8378f31a0d96eeea4061e58723be2d6d /plugin/kubernetes/external_test.go
parent302434e3928219138313610c7faf9be5cc598129 (diff)
downloadcoredns-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.go4
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}},
},