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
3f9a31ef
Commit
3f9a31ef
authored
May 09, 2017
by
zhangxiaoyu-zidif
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
util.go: format for
parent
a4a94d29
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
util.go
test/e2e/framework/util.go
+3
-4
No files found.
test/e2e/framework/util.go
View file @
3f9a31ef
...
@@ -4051,12 +4051,12 @@ func CheckPodsCondition(c clientset.Interface, ns string, podNames []string, tim
...
@@ -4051,12 +4051,12 @@ func CheckPodsCondition(c clientset.Interface, ns string, podNames []string, tim
np
:=
len
(
podNames
)
np
:=
len
(
podNames
)
Logf
(
"Waiting up to %v for %d pods to be %s: %s"
,
timeout
,
np
,
desc
,
podNames
)
Logf
(
"Waiting up to %v for %d pods to be %s: %s"
,
timeout
,
np
,
desc
,
podNames
)
result
:=
make
(
chan
bool
,
len
(
podNames
))
result
:=
make
(
chan
bool
,
len
(
podNames
))
for
ix
:=
range
podNames
{
for
_
,
podName
:=
range
podNames
{
// Launch off pod readiness checkers.
// Launch off pod readiness checkers.
go
func
(
name
string
)
{
go
func
(
name
string
)
{
err
:=
WaitForPodCondition
(
c
,
ns
,
name
,
desc
,
timeout
,
condition
)
err
:=
WaitForPodCondition
(
c
,
ns
,
name
,
desc
,
timeout
,
condition
)
result
<-
err
==
nil
result
<-
err
==
nil
}(
podName
s
[
ix
]
)
}(
podName
)
}
}
// Wait for them all to finish.
// Wait for them all to finish.
success
:=
true
success
:=
true
...
@@ -4801,8 +4801,7 @@ func ensureGCELoadBalancerResourcesDeleted(ip, portRange string) error {
...
@@ -4801,8 +4801,7 @@ func ensureGCELoadBalancerResourcesDeleted(ip, portRange string) error {
if
err
!=
nil
{
if
err
!=
nil
{
return
false
,
err
return
false
,
err
}
}
for
ix
:=
range
list
.
Items
{
for
_
,
item
:=
range
list
.
Items
{
item
:=
list
.
Items
[
ix
]
if
item
.
PortRange
==
portRange
&&
item
.
IPAddress
==
ip
{
if
item
.
PortRange
==
portRange
&&
item
.
IPAddress
==
ip
{
Logf
(
"found a load balancer: %v"
,
item
)
Logf
(
"found a load balancer: %v"
,
item
)
return
false
,
nil
return
false
,
nil
...
...
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