Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
cd08baa2
Commit
cd08baa2
authored
Jun 16, 2017
by
Dawn Chen
Committed by
GitHub
Jun 16, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #47631 from bowei/fix-47379
Fix hardcoded CIDR in the validation_test
parents
d7b631a5
1ed4afca
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
validation_test.go
pkg/api/validation/validation_test.go
+1
-1
run_test.sh
test/e2e_node/conformance/run_test.sh
+1
-1
kubelet.go
test/e2e_node/services/kubelet.go
+6
-1
No files found.
pkg/api/validation/validation_test.go
View file @
cd08baa2
...
@@ -7814,7 +7814,7 @@ func TestValidateServiceUpdate(t *testing.T) {
...
@@ -7814,7 +7814,7 @@ func TestValidateServiceUpdate(t *testing.T) {
oldSvc
.
Spec
.
Type
=
api
.
ServiceTypeLoadBalancer
oldSvc
.
Spec
.
Type
=
api
.
ServiceTypeLoadBalancer
oldSvc
.
Spec
.
LoadBalancerSourceRanges
=
[]
string
{
"10.0.0.0/8"
}
oldSvc
.
Spec
.
LoadBalancerSourceRanges
=
[]
string
{
"10.0.0.0/8"
}
newSvc
.
Spec
.
Type
=
api
.
ServiceTypeLoadBalancer
newSvc
.
Spec
.
Type
=
api
.
ServiceTypeLoadBalancer
newSvc
.
Spec
.
LoadBalancerSourceRanges
=
[]
string
{
"10.1
8
0.0.0/16"
}
newSvc
.
Spec
.
LoadBalancerSourceRanges
=
[]
string
{
"10.1
0
0.0.0/16"
}
},
},
numErrs
:
0
,
numErrs
:
0
,
},
},
...
...
test/e2e_node/conformance/run_test.sh
View file @
cd08baa2
...
@@ -150,7 +150,7 @@ allow_privileged=true
...
@@ -150,7 +150,7 @@ allow_privileged=true
serialize_image_pulls
=
false
serialize_image_pulls
=
false
config_dir
=
`
mktemp
-d
`
config_dir
=
`
mktemp
-d
`
file_check_frequency
=
10s
file_check_frequency
=
10s
pod_cidr
=
10.1
8
0.0.0/24
pod_cidr
=
10.1
0
0.0.0/24
log_level
=
4
log_level
=
4
start_kubelet
--api-servers
$apiserver
\
start_kubelet
--api-servers
$apiserver
\
--volume-stats-agg-period
$volume_stats_agg_period
\
--volume-stats-agg-period
$volume_stats_agg_period
\
...
...
test/e2e_node/services/kubelet.go
View file @
cd08baa2
...
@@ -137,7 +137,12 @@ func (e *E2EServices) startKubelet() (*server, error) {
...
@@ -137,7 +137,12 @@ func (e *E2EServices) startKubelet() (*server, error) {
"--serialize-image-pulls"
,
"false"
,
"--serialize-image-pulls"
,
"false"
,
"--pod-manifest-path"
,
manifestPath
,
"--pod-manifest-path"
,
manifestPath
,
"--file-check-frequency"
,
"10s"
,
// Check file frequently so tests won't wait too long
"--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"
,
"--eviction-pressure-transition-period"
,
"30s"
,
// Apply test framework feature gates by default. This could also be overridden
// Apply test framework feature gates by default. This could also be overridden
// by kubelet-flags.
// by kubelet-flags.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment