aboutsummaryrefslogtreecommitdiff
path: root/plugin/kubernetes/reverse_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/reverse_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/reverse_test.go')
-rw-r--r--plugin/kubernetes/reverse_test.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugin/kubernetes/reverse_test.go b/plugin/kubernetes/reverse_test.go
index 3b3b6872b..2e888f064 100644
--- a/plugin/kubernetes/reverse_test.go
+++ b/plugin/kubernetes/reverse_test.go
@@ -30,10 +30,10 @@ func (APIConnReverseTest) SvcIndex(svc string) []*object.Service {
}
svcs := []*object.Service{
{
- Name: "svc1",
- Namespace: "testns",
- ClusterIP: "192.168.1.100",
- Ports: []api.ServicePort{{Name: "http", Protocol: "tcp", Port: 80}},
+ Name: "svc1",
+ Namespace: "testns",
+ ClusterIPs: []string{"192.168.1.100"},
+ Ports: []api.ServicePort{{Name: "http", Protocol: "tcp", Port: 80}},
},
}
return svcs
@@ -46,10 +46,10 @@ func (APIConnReverseTest) SvcIndexReverse(ip string) []*object.Service {
}
svcs := []*object.Service{
{
- Name: "svc1",
- Namespace: "testns",
- ClusterIP: "192.168.1.100",
- Ports: []api.ServicePort{{Name: "http", Protocol: "tcp", Port: 80}},
+ Name: "svc1",
+ Namespace: "testns",
+ ClusterIPs: []string{"192.168.1.100"},
+ Ports: []api.ServicePort{{Name: "http", Protocol: "tcp", Port: 80}},
},
}
return svcs