Fix hardcoded CIDR in the validation_test

The ideal fix is to not hardcode these values.

fixes #47479
This commit is contained in:
Bowei Du
2017-06-15 22:15:08 -07:00
parent 8e1cf60a48
commit 1ed4afca80
3 changed files with 8 additions and 3 deletions

View File

@@ -7814,7 +7814,7 @@ func TestValidateServiceUpdate(t *testing.T) {
oldSvc.Spec.Type = api.ServiceTypeLoadBalancer
oldSvc.Spec.LoadBalancerSourceRanges = []string{"10.0.0.0/8"}
newSvc.Spec.Type = api.ServiceTypeLoadBalancer
newSvc.Spec.LoadBalancerSourceRanges = []string{"10.180.0.0/16"}
newSvc.Spec.LoadBalancerSourceRanges = []string{"10.100.0.0/16"}
},
numErrs: 0,
},