Skip to content

Commit

Permalink
Merge pull request kubernetes#47631 from bowei/fix-47379
Browse files Browse the repository at this point in the history
Fix hardcoded CIDR in the validation_test
  • Loading branch information
dchen1107 authored Jun 16, 2017
2 parents d7b631a + 1ed4afc commit cd08baa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/api/validation/validation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
2 changes: 1 addition & 1 deletion test/e2e_node/conformance/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ allow_privileged=true
serialize_image_pulls=false
config_dir=`mktemp -d`
file_check_frequency=10s
pod_cidr=10.180.0.0/24
pod_cidr=10.100.0.0/24
log_level=4
start_kubelet --api-servers $apiserver \
--volume-stats-agg-period $volume_stats_agg_period \
Expand Down
7 changes: 6 additions & 1 deletion test/e2e_node/services/kubelet.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,12 @@ func (e *E2EServices) startKubelet() (*server, error) {
"--serialize-image-pulls", "false",
"--pod-manifest-path", manifestPath,
"--file-check-frequency", "10s", // Check file frequently so tests won't wait too long
"--pod-cidr", "10.180.0.0/24", // Assign a fixed CIDR to the node because there is no node controller.
// Assign a fixed CIDR to the node because there is no node controller.
//
// Note: this MUST be in sync with with the IP in
// - cluster/gce/config-test.sh and
// - test/e2e_node/conformance/run_test.sh.
"--pod-cidr", "10.100.0.0/24",
"--eviction-pressure-transition-period", "30s",
// Apply test framework feature gates by default. This could also be overridden
// by kubelet-flags.
Expand Down

0 comments on commit cd08baa

Please sign in to comment.