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
e929977f
Commit
e929977f
authored
Oct 13, 2015
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15541 from wojtek-t/extend_logging_for_scalability
Auto commit by PR queue bot
parents
4008c653
f837b616
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
util.go
test/e2e/util.go
+4
-2
No files found.
test/e2e/util.go
View file @
e929977f
...
@@ -1400,9 +1400,11 @@ func RunRC(config RCConfig) error {
...
@@ -1400,9 +1400,11 @@ func RunRC(config RCConfig) error {
}
}
if
oldRunning
!=
config
.
Replicas
{
if
oldRunning
!=
config
.
Replicas
{
if
pods
,
err
:=
config
.
Client
.
Pods
(
api
.
NamespaceAll
)
.
List
(
labels
.
Everything
(),
fields
.
Everything
());
err
==
nil
{
// List only pods from a given replication controller.
if
pods
,
err
:=
config
.
Client
.
Pods
(
api
.
NamespaceAll
)
.
List
(
label
,
fields
.
Everything
());
err
==
nil
{
for
_
,
pod
:=
range
pods
.
Items
{
for
_
,
pod
:=
range
pods
.
Items
{
Logf
(
"Pod %s
\t
%s
\t
%s
\t
%s"
,
pod
.
Name
space
,
pod
.
Name
,
pod
.
Spec
.
NodeNam
e
,
pod
.
DeletionTimestamp
)
Logf
(
"Pod %s
\t
%s
\t
%s
\t
%s"
,
pod
.
Name
,
pod
.
Spec
.
NodeName
,
pod
.
Status
.
Phas
e
,
pod
.
DeletionTimestamp
)
}
}
}
else
{
}
else
{
Logf
(
"Can't list pod debug info: %v"
,
err
)
Logf
(
"Can't list pod debug info: %v"
,
err
)
...
...
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