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
0d95d71e
Commit
0d95d71e
authored
Dec 09, 2016
by
Michail Kargakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: cleanup test logs for deployments
parent
5b37bcc3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
util.go
test/e2e/framework/util.go
+14
-14
No files found.
test/e2e/framework/util.go
View file @
0d95d71e
...
...
@@ -3429,14 +3429,16 @@ func WaitForDeploymentOldRSsNum(c clientset.Interface, ns, deploymentName string
}
func
logReplicaSetsOfDeployment
(
deployment
*
extensions
.
Deployment
,
allOldRSs
[]
*
extensions
.
ReplicaSet
,
newRS
*
extensions
.
ReplicaSet
)
{
Logf
(
"Deployment: %+v. Selector = %+v"
,
*
deployment
,
deployment
.
Spec
.
Selector
)
for
i
:=
range
allOldRSs
{
Logf
(
"All old ReplicaSets (%d/%d) of deployment %s: %+v. Selector = %+v"
,
i
+
1
,
len
(
allOldRSs
),
deployment
.
Name
,
*
allOldRSs
[
i
],
allOldRSs
[
i
]
.
Spec
.
Selector
)
}
if
newRS
!=
nil
{
Logf
(
"New ReplicaSet of
deployment %s: %+v. Selector = %+v"
,
deployment
.
Name
,
*
newRS
,
newRS
.
Spec
.
Selector
)
Logf
(
"New ReplicaSet of
Deployment %s:
\n
%+v"
,
deployment
.
Name
,
*
newRS
)
}
else
{
Logf
(
"New ReplicaSet of deployment %s is nil."
,
deployment
.
Name
)
Logf
(
"New ReplicaSet of Deployment %s is nil."
,
deployment
.
Name
)
}
if
len
(
allOldRSs
)
>
0
{
Logf
(
"All old ReplicaSets of Deployment %s:"
,
deployment
.
Name
)
}
for
i
:=
range
allOldRSs
{
Logf
(
"%+v"
,
*
allOldRSs
[
i
])
}
}
...
...
@@ -3470,17 +3472,15 @@ func logPodsOfDeployment(c clientset.Interface, deployment *extensions.Deploymen
return
c
.
Core
()
.
Pods
(
namespace
)
.
List
(
options
)
})
if
err
!=
nil
{
Logf
(
"Failed to list
pods of d
eployment %s: %v"
,
deployment
.
Name
,
err
)
Logf
(
"Failed to list
Pods of D
eployment %s: %v"
,
deployment
.
Name
,
err
)
return
}
if
err
==
nil
{
for
_
,
pod
:=
range
podList
.
Items
{
availability
:=
"not available"
if
deploymentutil
.
IsPodAvailable
(
&
pod
,
minReadySeconds
,
time
.
Now
())
{
availability
=
"available"
}
Logf
(
"Pod %s is %s: %+v"
,
pod
.
Name
,
availability
,
pod
)
for
_
,
pod
:=
range
podList
.
Items
{
availability
:=
"not available"
if
deploymentutil
.
IsPodAvailable
(
&
pod
,
minReadySeconds
,
time
.
Now
())
{
availability
=
"available"
}
Logf
(
"Pod %s is %s:
\n
%+v"
,
pod
.
Name
,
availability
,
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