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
79c8ab45
Unverified
Commit
79c8ab45
authored
Jan 16, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Jan 16, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #62936 from hanxiaoshuai/bugfix0421
catch error when failed to get podList in function failureTrap
parents
5d19fda5
3d705c05
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
deployment.go
test/e2e/apps/deployment.go
+4
-0
No files found.
test/e2e/apps/deployment.go
View file @
79c8ab45
...
...
@@ -163,6 +163,10 @@ func failureTrap(c clientset.Interface, ns string) {
}
options
:=
metav1
.
ListOptions
{
LabelSelector
:
selector
.
String
()}
podList
,
err
:=
c
.
CoreV1
()
.
Pods
(
rs
.
Namespace
)
.
List
(
options
)
if
err
!=
nil
{
framework
.
Logf
(
"Failed to list Pods in namespace %s: %v"
,
rs
.
Namespace
,
err
)
continue
}
for
_
,
pod
:=
range
podList
.
Items
{
framework
.
Logf
(
spew
.
Sprintf
(
"pod: %q:
\n
%+v
\n
"
,
pod
.
Name
,
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