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
edb7f1ed
Commit
edb7f1ed
authored
Jun 15, 2017
by
Haoran Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some debug info for deployment e2e testing
parent
23aafdab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
deployment.go
test/e2e/deployment.go
+22
-0
No files found.
test/e2e/deployment.go
View file @
edb7f1ed
...
...
@@ -149,6 +149,28 @@ func failureTrap(c clientset.Interface, ns string) {
}
testutil
.
LogPodsOfDeployment
(
c
,
&
d
,
rsList
,
framework
.
Logf
)
}
// We need print all the ReplicaSets if there are no Deployment object created
if
len
(
deployments
.
Items
)
!=
0
{
return
}
framework
.
Logf
(
"Log out all the ReplicaSets if there is no deployment created"
)
rss
,
err
:=
c
.
ExtensionsV1beta1
()
.
ReplicaSets
(
ns
)
.
List
(
metav1
.
ListOptions
{
LabelSelector
:
labels
.
Everything
()
.
String
()})
if
err
!=
nil
{
framework
.
Logf
(
"Could not list ReplicaSets in namespace %q: %v"
,
ns
,
err
)
return
}
for
_
,
rs
:=
range
rss
.
Items
{
framework
.
Logf
(
spew
.
Sprintf
(
"ReplicaSet %q:
\n
%+v
\n
"
,
rs
.
Name
,
rs
))
selector
,
err
:=
metav1
.
LabelSelectorAsSelector
(
rs
.
Spec
.
Selector
)
if
err
!=
nil
{
framework
.
Logf
(
"failed to get selector of ReplicaSet %s: %v"
,
rs
.
Name
,
err
)
}
options
:=
metav1
.
ListOptions
{
LabelSelector
:
selector
.
String
()}
podList
,
err
:=
c
.
Core
()
.
Pods
(
rs
.
Namespace
)
.
List
(
options
)
for
_
,
pod
:=
range
podList
.
Items
{
framework
.
Logf
(
spew
.
Sprintf
(
"pod: %q:
\n
%+v
\n
"
,
pod
.
Name
,
pod
))
}
}
}
func
intOrStrP
(
num
int
)
*
intstr
.
IntOrString
{
...
...
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