From 01102e1ae23e35c7bd69bf701c4b0d536962ca60 Mon Sep 17 00:00:00 2001 From: fmeng Date: Fri, 21 Oct 2016 13:30:46 +0800 Subject: [PATCH] add required fields to test service --- test/e2e/federation-util.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/e2e/federation-util.go b/test/e2e/federation-util.go index 08fa743d043..ab15fa9f8a4 100644 --- a/test/e2e/federation-util.go +++ b/test/e2e/federation-util.go @@ -263,10 +263,12 @@ func createService(clientset *fedclientset.Clientset, namespace, name string) (* Ports: []v1.ServicePort{ { Name: "http", + Protocol: v1.ProtocolTCP, Port: 80, TargetPort: intstr.FromInt(8080), }, }, + SessionAffinity: v1.ServiceAffinityNone, }, } By(fmt.Sprintf("Trying to create service %q in namespace %q", service.Name, namespace))