mirror of https://github.com/k3s-io/k3s
Unit test quota for nodeport associated with loadbalancer
parent
ab9b299c30
commit
39b380c7bd
|
@ -67,6 +67,23 @@ func TestServiceEvaluatorUsage(t *testing.T) {
|
|||
api.ResourceServices: resource.MustParse("1"),
|
||||
},
|
||||
},
|
||||
"loadbalancer_ports": {
|
||||
service: &api.Service{
|
||||
Spec: api.ServiceSpec{
|
||||
Type: api.ServiceTypeLoadBalancer,
|
||||
Ports: []api.ServicePort{
|
||||
{
|
||||
Port: 27443,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
usage: api.ResourceList{
|
||||
api.ResourceServicesNodePorts: resource.MustParse("1"),
|
||||
api.ResourceServicesLoadBalancers: resource.MustParse("1"),
|
||||
api.ResourceServices: resource.MustParse("1"),
|
||||
},
|
||||
},
|
||||
"clusterip": {
|
||||
service: &api.Service{
|
||||
Spec: api.ServiceSpec{
|
||||
|
|
Loading…
Reference in New Issue