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
f0ea0fcc
Unverified
Commit
f0ea0fcc
authored
Apr 03, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Apr 03, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #75909 from ravisantoshgudimetla/fix-hostname
Fix nodeSelector hostname
parents
f171f9ee
3a4a6928
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
taints.go
test/e2e/scheduling/taints.go
+7
-1
No files found.
test/e2e/scheduling/taints.go
View file @
f0ea0fcc
...
...
@@ -410,10 +410,16 @@ var _ = SIGDescribe("NoExecuteTaintManager Multiple Pods [Serial]", func() {
By
(
"Starting pods..."
)
nodeName
,
err
:=
testutils
.
RunPodAndGetNodeName
(
cs
,
pod1
,
2
*
time
.
Minute
)
node
,
err
:=
cs
.
CoreV1
()
.
Nodes
()
.
Get
(
nodeName
,
metav1
.
GetOptions
{})
framework
.
ExpectNoError
(
err
)
nodeHostNameLabel
,
ok
:=
node
.
GetObjectMeta
()
.
GetLabels
()[
"kubernetes.io/hostname"
]
if
!
ok
{
framework
.
Failf
(
"error getting kubernetes.io/hostname label on node %s"
,
nodeName
)
}
framework
.
ExpectNoError
(
err
)
framework
.
Logf
(
"Pod1 is running on %v. Tainting Node"
,
nodeName
)
// ensure pod2 lands on the same node as pod1
pod2
.
Spec
.
NodeSelector
=
map
[
string
]
string
{
"kubernetes.io/hostname"
:
node
Name
}
pod2
.
Spec
.
NodeSelector
=
map
[
string
]
string
{
"kubernetes.io/hostname"
:
node
HostNameLabel
}
_
,
err
=
testutils
.
RunPodAndGetNodeName
(
cs
,
pod2
,
2
*
time
.
Minute
)
framework
.
ExpectNoError
(
err
)
framework
.
Logf
(
"Pod2 is running on %v. Tainting Node"
,
nodeName
)
...
...
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