aboutsummaryrefslogtreecommitdiff
path: root/plugin/kubernetes/reverse_test.go
diff options
context:
space:
mode:
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