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
d7332315
Commit
d7332315
authored
Mar 25, 2017
by
Kubernetes Submit Queue
Committed by
GitHub
Mar 25, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #42959 from smarterclayton/test_clean
Automatic merge from submit-queue (batch tested with PRs 42998, 42902, 42959, 43020, 42948) Delete host exec pods rapidly
parents
f9e87e1d
e3ca9570
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
util.go
test/e2e/framework/util.go
+4
-2
No files found.
test/e2e/framework/util.go
View file @
d7332315
...
@@ -3849,6 +3849,7 @@ func IssueSSHCommand(cmd, provider string, node *v1.Node) error {
...
@@ -3849,6 +3849,7 @@ func IssueSSHCommand(cmd, provider string, node *v1.Node) error {
// NewHostExecPodSpec returns the pod spec of hostexec pod
// NewHostExecPodSpec returns the pod spec of hostexec pod
func
NewHostExecPodSpec
(
ns
,
name
string
)
*
v1
.
Pod
{
func
NewHostExecPodSpec
(
ns
,
name
string
)
*
v1
.
Pod
{
immediate
:=
int64
(
0
)
pod
:=
&
v1
.
Pod
{
pod
:=
&
v1
.
Pod
{
ObjectMeta
:
metav1
.
ObjectMeta
{
ObjectMeta
:
metav1
.
ObjectMeta
{
Name
:
name
,
Name
:
name
,
...
@@ -3862,8 +3863,9 @@ func NewHostExecPodSpec(ns, name string) *v1.Pod {
...
@@ -3862,8 +3863,9 @@ func NewHostExecPodSpec(ns, name string) *v1.Pod {
ImagePullPolicy
:
v1
.
PullIfNotPresent
,
ImagePullPolicy
:
v1
.
PullIfNotPresent
,
},
},
},
},
HostNetwork
:
true
,
HostNetwork
:
true
,
SecurityContext
:
&
v1
.
PodSecurityContext
{},
SecurityContext
:
&
v1
.
PodSecurityContext
{},
TerminationGracePeriodSeconds
:
&
immediate
,
},
},
}
}
return
pod
return
pod
...
...
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