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
99142b89
Commit
99142b89
authored
May 10, 2017
by
gmarek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make SchedulerPredicates test more resiliant to recent Node restarts
parent
3fbfafdd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
predicates.go
test/e2e/scheduling/predicates.go
+4
-0
No files found.
test/e2e/scheduling/predicates.go
View file @
99142b89
...
@@ -39,6 +39,7 @@ import (
...
@@ -39,6 +39,7 @@ import (
const
maxNumberOfPods
int64
=
10
const
maxNumberOfPods
int64
=
10
const
minPodCPURequest
int64
=
500
const
minPodCPURequest
int64
=
500
const
imagePrePullingTimeout
=
5
*
time
.
Minute
// variable set in BeforeEach, never modified afterwards
// variable set in BeforeEach, never modified afterwards
var
masterNodes
sets
.
String
var
masterNodes
sets
.
String
...
@@ -97,6 +98,9 @@ var _ = framework.KubeDescribe("SchedulerPredicates [Serial]", func() {
...
@@ -97,6 +98,9 @@ var _ = framework.KubeDescribe("SchedulerPredicates [Serial]", func() {
err
=
framework
.
WaitForPodsRunningReady
(
cs
,
metav1
.
NamespaceSystem
,
int32
(
systemPodsNo
),
0
,
framework
.
PodReadyBeforeTimeout
,
ignoreLabels
)
err
=
framework
.
WaitForPodsRunningReady
(
cs
,
metav1
.
NamespaceSystem
,
int32
(
systemPodsNo
),
0
,
framework
.
PodReadyBeforeTimeout
,
ignoreLabels
)
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
err
=
framework
.
WaitForPodsSuccess
(
cs
,
metav1
.
NamespaceSystem
,
framework
.
ImagePullerLabels
,
imagePrePullingTimeout
)
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
for
_
,
node
:=
range
nodeList
.
Items
{
for
_
,
node
:=
range
nodeList
.
Items
{
framework
.
Logf
(
"
\n
Logging pods the kubelet thinks is on node %v before test"
,
node
.
Name
)
framework
.
Logf
(
"
\n
Logging pods the kubelet thinks is on node %v before test"
,
node
.
Name
)
framework
.
PrintAllKubeletPods
(
cs
,
node
.
Name
)
framework
.
PrintAllKubeletPods
(
cs
,
node
.
Name
)
...
...
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