mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-19 08:40:42 +00:00
add required fields to test service
This commit is contained in:
parent
a67e887fee
commit
01102e1ae2
@ -263,10 +263,12 @@ func createService(clientset *fedclientset.Clientset, namespace, name string) (*
|
|||||||
Ports: []v1.ServicePort{
|
Ports: []v1.ServicePort{
|
||||||
{
|
{
|
||||||
Name: "http",
|
Name: "http",
|
||||||
|
Protocol: v1.ProtocolTCP,
|
||||||
Port: 80,
|
Port: 80,
|
||||||
TargetPort: intstr.FromInt(8080),
|
TargetPort: intstr.FromInt(8080),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
SessionAffinity: v1.ServiceAffinityNone,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
By(fmt.Sprintf("Trying to create service %q in namespace %q", service.Name, namespace))
|
By(fmt.Sprintf("Trying to create service %q in namespace %q", service.Name, namespace))
|
||||||
|
Loading…
Reference in New Issue
Block a user