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>
This commit is contained in:
Chris O'Haver 2020-12-21 05:30:24 -05:00 committed by GitHub
parent 302434e392
commit 51c05679e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 204 additions and 111 deletions

View file

@ -37,19 +37,19 @@ func (a APIConnTest) SvcIndex(s string) []*object.Service {
func (APIConnTest) ServiceList() []*object.Service {
svcs := []*object.Service{
{
Name: "dns-service",
Namespace: "kube-system",
ClusterIP: "10.0.0.111",
Name: "dns-service",
Namespace: "kube-system",
ClusterIPs: []string{"10.0.0.111"},
},
{
Name: "hdls-dns-service",
Namespace: "kube-system",
ClusterIP: api.ClusterIPNone,
Name: "hdls-dns-service",
Namespace: "kube-system",
ClusterIPs: []string{api.ClusterIPNone},
},
{
Name: "dns6-service",
Namespace: "kube-system",
ClusterIP: "10::111",
Name: "dns6-service",
Namespace: "kube-system",
ClusterIPs: []string{"10::111"},
},
}
return svcs