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
5b760307
Unverified
Commit
5b760307
authored
Nov 14, 2018
by
k8s-ci-robot
Committed by
GitHub
Nov 14, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #71039 from mkimuram/issue/70760hostpath
Fix CreateSecPodWithNodeName to properly set node to be deployed
parents
843a67b2
6a94656d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
pv_util.go
test/e2e/framework/pv_util.go
+3
-2
volumemode.go
test/e2e/storage/testsuites/volumemode.go
+1
-1
No files found.
test/e2e/framework/pv_util.go
View file @
5b760307
...
...
@@ -880,12 +880,13 @@ func CreateSecPod(client clientset.Interface, namespace string, pvclaims []*v1.P
// create security pod with given claims
func
CreateSecPodWithNodeName
(
client
clientset
.
Interface
,
namespace
string
,
pvclaims
[]
*
v1
.
PersistentVolumeClaim
,
isPrivileged
bool
,
command
string
,
hostIPC
bool
,
hostPID
bool
,
seLinuxLabel
*
v1
.
SELinuxOptions
,
fsGroup
*
int64
,
nodeName
string
,
timeout
time
.
Duration
)
(
*
v1
.
Pod
,
error
)
{
pod
:=
MakeSecPod
(
namespace
,
pvclaims
,
isPrivileged
,
command
,
hostIPC
,
hostPID
,
seLinuxLabel
,
fsGroup
)
// Setting nodeName
pod
.
Spec
.
NodeName
=
nodeName
pod
,
err
:=
client
.
CoreV1
()
.
Pods
(
namespace
)
.
Create
(
pod
)
if
err
!=
nil
{
return
nil
,
fmt
.
Errorf
(
"pod Create API error: %v"
,
err
)
}
// Setting nodeName
pod
.
Spec
.
NodeName
=
nodeName
// Waiting for pod to be running
err
=
WaitTimeoutForPodRunningInNamespace
(
client
,
pod
.
Name
,
namespace
,
timeout
)
...
...
test/e2e/storage/testsuites/volumemode.go
View file @
5b760307
...
...
@@ -342,7 +342,7 @@ func testVolumeModeSuccessForDynamicPV(input *volumeModeTestInput) {
var
err
error
// TODO: This skip should be removed once #70760 is fixed
skipTestUntilBugfix
(
"70760"
,
input
.
driverName
,
[]
string
{
"c
si-hostpath"
,
"c
om.google.csi.gcepd"
})
skipTestUntilBugfix
(
"70760"
,
input
.
driverName
,
[]
string
{
"com.google.csi.gcepd"
})
By
(
"Creating sc"
)
input
.
sc
,
err
=
cs
.
StorageV1
()
.
StorageClasses
()
.
Create
(
input
.
sc
)
...
...
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