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
e9245b09
Unverified
Commit
e9245b09
authored
Jul 27, 2017
by
Clayton Coleman
Committed by
Jordan Liggitt
Jun 11, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not error out on pods in kube-system
Scheduling tests are too aggressive about the health of kube-system.
parent
6168bec1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
predicates.go
test/e2e/scheduling/predicates.go
+0
-20
No files found.
test/e2e/scheduling/predicates.go
View file @
e9245b09
...
...
@@ -60,12 +60,10 @@ type pausePodConfig struct {
var
_
=
SIGDescribe
(
"SchedulerPredicates [Serial]"
,
func
()
{
var
cs
clientset
.
Interface
var
nodeList
*
v1
.
NodeList
var
systemPodsNo
int
var
totalPodCapacity
int64
var
RCName
string
var
ns
string
f
:=
framework
.
NewDefaultFramework
(
"sched-pred"
)
ignoreLabels
:=
framework
.
ImagePullerLabels
AfterEach
(
func
()
{
rc
,
err
:=
cs
.
CoreV1
()
.
ReplicationControllers
(
ns
)
.
Get
(
RCName
,
metav1
.
GetOptions
{})
...
...
@@ -87,24 +85,6 @@ var _ = SIGDescribe("SchedulerPredicates [Serial]", func() {
err
:=
framework
.
CheckTestingNSDeletedExcept
(
cs
,
ns
)
framework
.
ExpectNoError
(
err
)
// Every test case in this suite assumes that cluster add-on pods stay stable and
// cannot be run in parallel with any other test that touches Nodes or Pods.
// It is so because we need to have precise control on what's running in the cluster.
systemPods
,
err
:=
framework
.
GetPodsInNamespace
(
cs
,
ns
,
ignoreLabels
)
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
systemPodsNo
=
0
for
_
,
pod
:=
range
systemPods
{
if
!
masterNodes
.
Has
(
pod
.
Spec
.
NodeName
)
&&
pod
.
DeletionTimestamp
==
nil
{
systemPodsNo
++
}
}
err
=
framework
.
WaitForPodsRunningReady
(
cs
,
metav1
.
NamespaceSystem
,
int32
(
systemPodsNo
),
0
,
framework
.
PodReadyBeforeTimeout
,
ignoreLabels
)
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
err
=
framework
.
WaitForPodsSuccess
(
cs
,
metav1
.
NamespaceSystem
,
framework
.
ImagePullerLabels
,
framework
.
ImagePrePullingTimeout
)
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
for
_
,
node
:=
range
nodeList
.
Items
{
framework
.
Logf
(
"
\n
Logging pods the kubelet thinks is on node %v before test"
,
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