mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
Unit test quota for nodeport associated with loadbalancer
This commit is contained in:
parent
ab9b299c30
commit
39b380c7bd
@ -67,6 +67,23 @@ func TestServiceEvaluatorUsage(t *testing.T) {
|
|||||||
api.ResourceServices: resource.MustParse("1"),
|
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": {
|
"clusterip": {
|
||||||
service: &api.Service{
|
service: &api.Service{
|
||||||
Spec: api.ServiceSpec{
|
Spec: api.ServiceSpec{
|
||||||
|
Loading…
Reference in New Issue
Block a user