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
1c71f6b0
Unverified
Commit
1c71f6b0
authored
Feb 28, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Feb 28, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #74744 from Huang-Wei/debug-gke-cos
print out verbose info for a scheduler e2e test
parents
ba345916
f1e28842
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
preemption.go
test/e2e/scheduling/preemption.go
+18
-1
No files found.
test/e2e/scheduling/preemption.go
View file @
1c71f6b0
...
@@ -385,6 +385,20 @@ var _ = SIGDescribe("PreemptionExecutionPath", func() {
...
@@ -385,6 +385,20 @@ var _ = SIGDescribe("PreemptionExecutionPath", func() {
priorityPairs
:=
make
([]
priorityPair
,
0
)
priorityPairs
:=
make
([]
priorityPair
,
0
)
AfterEach
(
func
()
{
AfterEach
(
func
()
{
// print out additional info if tests failed
if
CurrentGinkgoTestDescription
()
.
Failed
{
// list existing priorities
priorityList
,
err
:=
cs
.
SchedulingV1
()
.
PriorityClasses
()
.
List
(
metav1
.
ListOptions
{})
if
err
!=
nil
{
framework
.
Logf
(
"Unable to list priorities: %v"
,
err
)
}
else
{
framework
.
Logf
(
"List existing priorities:"
)
for
_
,
p
:=
range
priorityList
.
Items
{
framework
.
Logf
(
"%v/%v created at %v"
,
p
.
Name
,
p
.
Value
,
p
.
CreationTimestamp
)
}
}
}
if
node
!=
nil
{
if
node
!=
nil
{
nodeCopy
:=
node
.
DeepCopy
()
nodeCopy
:=
node
.
DeepCopy
()
// force it to update
// force it to update
...
@@ -428,6 +442,10 @@ var _ = SIGDescribe("PreemptionExecutionPath", func() {
...
@@ -428,6 +442,10 @@ var _ = SIGDescribe("PreemptionExecutionPath", func() {
priorityVal
:=
int32
(
i
)
priorityVal
:=
int32
(
i
)
priorityPairs
=
append
(
priorityPairs
,
priorityPair
{
name
:
priorityName
,
value
:
priorityVal
})
priorityPairs
=
append
(
priorityPairs
,
priorityPair
{
name
:
priorityName
,
value
:
priorityVal
})
_
,
err
:=
cs
.
SchedulingV1
()
.
PriorityClasses
()
.
Create
(
&
schedulerapi
.
PriorityClass
{
ObjectMeta
:
metav1
.
ObjectMeta
{
Name
:
priorityName
},
Value
:
priorityVal
})
_
,
err
:=
cs
.
SchedulingV1
()
.
PriorityClasses
()
.
Create
(
&
schedulerapi
.
PriorityClass
{
ObjectMeta
:
metav1
.
ObjectMeta
{
Name
:
priorityName
},
Value
:
priorityVal
})
if
err
!=
nil
{
framework
.
Logf
(
"Failed to create priority '%v/%v': %v"
,
priorityName
,
priorityVal
,
err
)
framework
.
Logf
(
"Reason: %v. Msg: %v"
,
errors
.
ReasonForError
(
err
),
err
)
}
Expect
(
err
==
nil
||
errors
.
IsAlreadyExists
(
err
))
.
To
(
Equal
(
true
))
Expect
(
err
==
nil
||
errors
.
IsAlreadyExists
(
err
))
.
To
(
Equal
(
true
))
}
}
})
})
...
@@ -557,7 +575,6 @@ var _ = SIGDescribe("PreemptionExecutionPath", func() {
...
@@ -557,7 +575,6 @@ var _ = SIGDescribe("PreemptionExecutionPath", func() {
}
}
}
}
})
})
})
})
type
pauseRSConfig
struct
{
type
pauseRSConfig
struct
{
...
...
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