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
426d44de
Commit
426d44de
authored
Jun 07, 2017
by
Jing Xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix local capacity isolation test
Fix issue #47128, also add flaky tag for this evition test
parent
0b13aee0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
local_storage_isolation_eviction_test.go
test/e2e_node/local_storage_isolation_eviction_test.go
+6
-6
No files found.
test/e2e_node/local_storage_isolation_eviction_test.go
View file @
426d44de
...
...
@@ -42,7 +42,7 @@ const (
// Eviction Policy is described here:
// https://github.com/kubernetes/kubernetes/blob/master/docs/proposals/kubelet-eviction.md
var
_
=
framework
.
KubeDescribe
(
"LocalStorageCapacityIsolationEviction [Slow] [Serial] [Disruptive] [Feature:LocalStorageCapacityIsolation]"
,
func
()
{
var
_
=
framework
.
KubeDescribe
(
"LocalStorageCapacityIsolationEviction [Slow] [Serial] [Disruptive] [F
laky] [F
eature:LocalStorageCapacityIsolation]"
,
func
()
{
f
:=
framework
.
NewDefaultFramework
(
"localstorage-eviction-test"
)
...
...
@@ -60,7 +60,7 @@ var _ = framework.KubeDescribe("LocalStorageCapacityIsolationEviction [Slow] [Se
Command
:
[]
string
{
"sh"
,
"-c"
,
"dd if=/dev/urandom of=target-file of=/cache/target-file bs=50000 count=1; while true; do sleep 5; done"
,
"
sleep 5;
dd if=/dev/urandom of=target-file of=/cache/target-file bs=50000 count=1; while true; do sleep 5; done"
,
},
VolumeMounts
:
[]
v1
.
VolumeMount
{
{
...
...
@@ -96,7 +96,7 @@ var _ = framework.KubeDescribe("LocalStorageCapacityIsolationEviction [Slow] [Se
Command
:
[]
string
{
"sh"
,
"-c"
,
"dd if=/dev/urandom of=target-file of=/cache/target-file bs=50000 count=1; while true; do sleep 5; done"
,
"
sleep 5;
dd if=/dev/urandom of=target-file of=/cache/target-file bs=50000 count=1; while true; do sleep 5; done"
,
},
VolumeMounts
:
[]
v1
.
VolumeMount
{
{
...
...
@@ -133,7 +133,7 @@ var _ = framework.KubeDescribe("LocalStorageCapacityIsolationEviction [Slow] [Se
Command
:
[]
string
{
"sh"
,
"-c"
,
"dd if=/dev/urandom of=target-file of=/cache/target-file bs=50000 count=1; while true; do sleep 5; done"
,
"
sleep 5;
dd if=/dev/urandom of=target-file of=/cache/target-file bs=50000 count=1; while true; do sleep 5; done"
,
},
VolumeMounts
:
[]
v1
.
VolumeMount
{
{
...
...
@@ -169,7 +169,7 @@ var _ = framework.KubeDescribe("LocalStorageCapacityIsolationEviction [Slow] [Se
Command
:
[]
string
{
"sh"
,
"-c"
,
"dd if=/dev/urandom of=target-file bs=50000 count=1; while true; do sleep 5; done"
,
"
sleep 5;
dd if=/dev/urandom of=target-file bs=50000 count=1; while true; do sleep 5; done"
,
},
Resources
:
v1
.
ResourceRequirements
{
Limits
:
v1
.
ResourceList
{
...
...
@@ -185,7 +185,7 @@ var _ = framework.KubeDescribe("LocalStorageCapacityIsolationEviction [Slow] [Se
},
}
evictionTestTimeout
:=
4
*
time
.
Minute
evictionTestTimeout
:=
10
*
time
.
Minute
testCondition
:=
"EmptyDir/ContainerOverlay usage limit violation"
Context
(
fmt
.
Sprintf
(
"EmptyDirEviction when we run containers that should cause %s"
,
testCondition
),
func
()
{
tempSetCurrentKubeletConfig
(
f
,
func
(
initialConfig
*
componentconfig
.
KubeletConfiguration
)
{
...
...
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