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
28f1d48b
Commit
28f1d48b
authored
Oct 19, 2016
by
Matthew Wong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set done to true & return error if RestartPolicy not Always
parent
be1996ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
util.go
test/e2e/framework/util.go
+1
-1
No files found.
test/e2e/framework/util.go
View file @
28f1d48b
...
@@ -1313,7 +1313,7 @@ func waitForPodTerminatedInNamespace(c *client.Client, podName, reason, namespac
...
@@ -1313,7 +1313,7 @@ func waitForPodTerminatedInNamespace(c *client.Client, podName, reason, namespac
func
waitForPodSuccessInNamespaceTimeout
(
c
*
client
.
Client
,
podName
string
,
namespace
string
,
timeout
time
.
Duration
)
error
{
func
waitForPodSuccessInNamespaceTimeout
(
c
*
client
.
Client
,
podName
string
,
namespace
string
,
timeout
time
.
Duration
)
error
{
return
waitForPodCondition
(
c
,
namespace
,
podName
,
"success or failure"
,
timeout
,
func
(
pod
*
api
.
Pod
)
(
bool
,
error
)
{
return
waitForPodCondition
(
c
,
namespace
,
podName
,
"success or failure"
,
timeout
,
func
(
pod
*
api
.
Pod
)
(
bool
,
error
)
{
if
pod
.
Spec
.
RestartPolicy
==
api
.
RestartPolicyAlways
{
if
pod
.
Spec
.
RestartPolicy
==
api
.
RestartPolicyAlways
{
return
fals
e
,
fmt
.
Errorf
(
"pod %q will never terminate with a succeeded state since its restart policy is Always"
,
podName
)
return
tru
e
,
fmt
.
Errorf
(
"pod %q will never terminate with a succeeded state since its restart policy is Always"
,
podName
)
}
}
switch
pod
.
Status
.
Phase
{
switch
pod
.
Status
.
Phase
{
case
api
.
PodSucceeded
:
case
api
.
PodSucceeded
:
...
...
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