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
f244e3cb
Commit
f244e3cb
authored
Jun 13, 2017
by
zhangxiaoyu-zidif
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete unused return
parent
b84567a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
predicates.go
test/e2e/scheduling/predicates.go
+5
-5
No files found.
test/e2e/scheduling/predicates.go
View file @
f244e3cb
...
@@ -276,7 +276,7 @@ var _ = framework.KubeDescribe("SchedulerPredicates [Serial]", func() {
...
@@ -276,7 +276,7 @@ var _ = framework.KubeDescribe("SchedulerPredicates [Serial]", func() {
By
(
"Trying to relaunch the pod, now with labels."
)
By
(
"Trying to relaunch the pod, now with labels."
)
labelPodName
:=
"with-labels"
labelPodName
:=
"with-labels"
_
=
createPausePod
(
f
,
pausePodConfig
{
createPausePod
(
f
,
pausePodConfig
{
Name
:
labelPodName
,
Name
:
labelPodName
,
NodeSelector
:
map
[
string
]
string
{
NodeSelector
:
map
[
string
]
string
{
"kubernetes.io/hostname"
:
nodeName
,
"kubernetes.io/hostname"
:
nodeName
,
...
@@ -350,7 +350,7 @@ var _ = framework.KubeDescribe("SchedulerPredicates [Serial]", func() {
...
@@ -350,7 +350,7 @@ var _ = framework.KubeDescribe("SchedulerPredicates [Serial]", func() {
By
(
"Trying to relaunch the pod, now with labels."
)
By
(
"Trying to relaunch the pod, now with labels."
)
labelPodName
:=
"with-labels"
labelPodName
:=
"with-labels"
_
=
createPausePod
(
f
,
pausePodConfig
{
createPausePod
(
f
,
pausePodConfig
{
Name
:
labelPodName
,
Name
:
labelPodName
,
Affinity
:
&
v1
.
Affinity
{
Affinity
:
&
v1
.
Affinity
{
NodeAffinity
:
&
v1
.
NodeAffinity
{
NodeAffinity
:
&
v1
.
NodeAffinity
{
...
@@ -463,7 +463,7 @@ var _ = framework.KubeDescribe("SchedulerPredicates [Serial]", func() {
...
@@ -463,7 +463,7 @@ var _ = framework.KubeDescribe("SchedulerPredicates [Serial]", func() {
By
(
"Trying to launch the pod, now with podAffinity."
)
By
(
"Trying to launch the pod, now with podAffinity."
)
labelPodName
:=
"with-podaffinity-"
+
string
(
uuid
.
NewUUID
())
labelPodName
:=
"with-podaffinity-"
+
string
(
uuid
.
NewUUID
())
_
=
createPausePod
(
f
,
pausePodConfig
{
createPausePod
(
f
,
pausePodConfig
{
Name
:
labelPodName
,
Name
:
labelPodName
,
Affinity
:
&
v1
.
Affinity
{
Affinity
:
&
v1
.
Affinity
{
PodAffinity
:
&
v1
.
PodAffinity
{
PodAffinity
:
&
v1
.
PodAffinity
{
...
@@ -574,7 +574,7 @@ var _ = framework.KubeDescribe("SchedulerPredicates [Serial]", func() {
...
@@ -574,7 +574,7 @@ var _ = framework.KubeDescribe("SchedulerPredicates [Serial]", func() {
By
(
"Trying to launch the pod, now with multiple pod affinities with diff LabelOperators."
)
By
(
"Trying to launch the pod, now with multiple pod affinities with diff LabelOperators."
)
labelPodName
:=
"with-podaffinity-"
+
string
(
uuid
.
NewUUID
())
labelPodName
:=
"with-podaffinity-"
+
string
(
uuid
.
NewUUID
())
_
=
createPausePod
(
f
,
pausePodConfig
{
createPausePod
(
f
,
pausePodConfig
{
Name
:
labelPodName
,
Name
:
labelPodName
,
Affinity
:
&
v1
.
Affinity
{
Affinity
:
&
v1
.
Affinity
{
PodAffinity
:
&
v1
.
PodAffinity
{
PodAffinity
:
&
v1
.
PodAffinity
{
...
@@ -689,7 +689,7 @@ var _ = framework.KubeDescribe("SchedulerPredicates [Serial]", func() {
...
@@ -689,7 +689,7 @@ var _ = framework.KubeDescribe("SchedulerPredicates [Serial]", func() {
By
(
"Trying to relaunch the pod, now with tolerations."
)
By
(
"Trying to relaunch the pod, now with tolerations."
)
tolerationPodName
:=
"with-tolerations"
tolerationPodName
:=
"with-tolerations"
_
=
createPausePod
(
f
,
pausePodConfig
{
createPausePod
(
f
,
pausePodConfig
{
Name
:
tolerationPodName
,
Name
:
tolerationPodName
,
Tolerations
:
[]
v1
.
Toleration
{{
Key
:
testTaint
.
Key
,
Value
:
testTaint
.
Value
,
Effect
:
testTaint
.
Effect
}},
Tolerations
:
[]
v1
.
Toleration
{{
Key
:
testTaint
.
Key
,
Value
:
testTaint
.
Value
,
Effect
:
testTaint
.
Effect
}},
NodeSelector
:
map
[
string
]
string
{
labelKey
:
labelValue
},
NodeSelector
:
map
[
string
]
string
{
labelKey
:
labelValue
},
...
...
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