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
e02cad4a
Commit
e02cad4a
authored
May 13, 2016
by
Jeff Lowdermilk
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #25564 from davidopp/fix-pod-affinity-test
Move test input files from test/e2e/node-selection/ to test/e2e/testing-manifests/
parents
24c46acd
dd70a5e5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
2 deletions
+2
-2
scheduler_predicates.go
test/e2e/scheduler_predicates.go
+2
-2
pod-with-node-affinity.yaml
...ting-manifests/node-selection/pod-with-node-affinity.yaml
+0
-0
pod-with-pod-affinity.yaml
...sting-manifests/node-selection/pod-with-pod-affinity.yaml
+0
-0
No files found.
test/e2e/scheduler_predicates.go
View file @
e02cad4a
...
@@ -718,7 +718,7 @@ var _ = framework.KubeDescribe("SchedulerPredicates [Serial]", func() {
...
@@ -718,7 +718,7 @@ var _ = framework.KubeDescribe("SchedulerPredicates [Serial]", func() {
By
(
"Trying to launch a pod that with NodeAffinity setting as embedded JSON string in the annotation value."
)
By
(
"Trying to launch a pod that with NodeAffinity setting as embedded JSON string in the annotation value."
)
labelPodName
:=
"with-labels"
labelPodName
:=
"with-labels"
nodeSelectionRoot
:=
filepath
.
Join
(
framework
.
TestContext
.
RepoRoot
,
"test/e2e/node-selection"
)
nodeSelectionRoot
:=
filepath
.
Join
(
framework
.
TestContext
.
RepoRoot
,
"test/e2e/
testing-manifests/
node-selection"
)
testPodPath
:=
filepath
.
Join
(
nodeSelectionRoot
,
"pod-with-node-affinity.yaml"
)
testPodPath
:=
filepath
.
Join
(
nodeSelectionRoot
,
"pod-with-node-affinity.yaml"
)
framework
.
RunKubectlOrDie
(
"create"
,
"-f"
,
testPodPath
,
fmt
.
Sprintf
(
"--namespace=%v"
,
ns
))
framework
.
RunKubectlOrDie
(
"create"
,
"-f"
,
testPodPath
,
fmt
.
Sprintf
(
"--namespace=%v"
,
ns
))
defer
c
.
Pods
(
ns
)
.
Delete
(
labelPodName
,
api
.
NewDeleteOptions
(
0
))
defer
c
.
Pods
(
ns
)
.
Delete
(
labelPodName
,
api
.
NewDeleteOptions
(
0
))
...
@@ -1265,7 +1265,7 @@ var _ = framework.KubeDescribe("SchedulerPredicates [Serial]", func() {
...
@@ -1265,7 +1265,7 @@ var _ = framework.KubeDescribe("SchedulerPredicates [Serial]", func() {
By
(
"Trying to launch a pod that with PodAffinity & PodAntiAffinity setting as embedded JSON string in the annotation value."
)
By
(
"Trying to launch a pod that with PodAffinity & PodAntiAffinity setting as embedded JSON string in the annotation value."
)
labelPodName
:=
"with-newlabels"
labelPodName
:=
"with-newlabels"
nodeSelectionRoot
:=
filepath
.
Join
(
framework
.
TestContext
.
RepoRoot
,
"test/e2e/node-selection"
)
nodeSelectionRoot
:=
filepath
.
Join
(
framework
.
TestContext
.
RepoRoot
,
"test/e2e/
testing-manifests/
node-selection"
)
testPodPath
:=
filepath
.
Join
(
nodeSelectionRoot
,
"pod-with-pod-affinity.yaml"
)
testPodPath
:=
filepath
.
Join
(
nodeSelectionRoot
,
"pod-with-pod-affinity.yaml"
)
framework
.
RunKubectlOrDie
(
"create"
,
"-f"
,
testPodPath
,
fmt
.
Sprintf
(
"--namespace=%v"
,
ns
))
framework
.
RunKubectlOrDie
(
"create"
,
"-f"
,
testPodPath
,
fmt
.
Sprintf
(
"--namespace=%v"
,
ns
))
defer
c
.
Pods
(
ns
)
.
Delete
(
labelPodName
,
api
.
NewDeleteOptions
(
0
))
defer
c
.
Pods
(
ns
)
.
Delete
(
labelPodName
,
api
.
NewDeleteOptions
(
0
))
...
...
test/e2e/node-selection/pod-with-node-affinity.yaml
→
test/e2e/
testing-manifests/
node-selection/pod-with-node-affinity.yaml
View file @
e02cad4a
File moved
test/e2e/node-selection/pod-with-pod-affinity.yaml
→
test/e2e/
testing-manifests/
node-selection/pod-with-pod-affinity.yaml
View file @
e02cad4a
File moved
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