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
22b04c82
Commit
22b04c82
authored
Oct 26, 2017
by
Penghao Cen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Append --feature-gates option iff TestContext.FeatureGates is not nil
parent
d12d711b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
kubelet.go
test/e2e_node/services/kubelet.go
+6
-3
No files found.
test/e2e_node/services/kubelet.go
View file @
22b04c82
...
@@ -165,14 +165,17 @@ func (e *E2EServices) startKubelet() (*server, error) {
...
@@ -165,14 +165,17 @@ func (e *E2EServices) startKubelet() (*server, error) {
// - test/e2e_node/conformance/run_test.sh.
// - test/e2e_node/conformance/run_test.sh.
"--pod-cidr"
,
"10.100.0.0/24"
,
"--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
// by kubelet-flags.
"--feature-gates"
,
framework
.
TestContext
.
FeatureGates
,
"--eviction-hard"
,
"memory.available<250Mi,nodefs.available<10%,nodefs.inodesFree<5%"
,
// The hard eviction thresholds.
"--eviction-hard"
,
"memory.available<250Mi,nodefs.available<10%,nodefs.inodesFree<5%"
,
// The hard eviction thresholds.
"--eviction-minimum-reclaim"
,
"nodefs.available=5%,nodefs.inodesFree=5%"
,
// The minimum reclaimed resources after eviction.
"--eviction-minimum-reclaim"
,
"nodefs.available=5%,nodefs.inodesFree=5%"
,
// The minimum reclaimed resources after eviction.
"--v"
,
LOG_VERBOSITY_LEVEL
,
"--logtostderr"
,
"--v"
,
LOG_VERBOSITY_LEVEL
,
"--logtostderr"
,
)
)
// Apply test framework feature gates by default. This could also be overridden
// by kubelet-flags.
if
framework
.
TestContext
.
FeatureGates
!=
""
{
cmdArgs
=
append
(
cmdArgs
,
"--feature-gates"
,
framework
.
TestContext
.
FeatureGates
)
}
if
utilfeature
.
DefaultFeatureGate
.
Enabled
(
features
.
DynamicKubeletConfig
)
{
if
utilfeature
.
DefaultFeatureGate
.
Enabled
(
features
.
DynamicKubeletConfig
)
{
// Enable dynamic config if the feature gate is enabled
// Enable dynamic config if the feature gate is enabled
dynamicConfigDir
,
err
:=
getDynamicConfigDir
()
dynamicConfigDir
,
err
:=
getDynamicConfigDir
()
...
...
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