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
26e309c7
Commit
26e309c7
authored
Mar 11, 2016
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #22784 from justinsb/fix_17626
Auto commit by PR queue bot
parents
353c3827
7c82fe73
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
aws.go
pkg/cloudprovider/providers/aws/aws.go
+8
-3
No files found.
pkg/cloudprovider/providers/aws/aws.go
View file @
26e309c7
...
@@ -2496,7 +2496,7 @@ func (s *AWSCloud) EnsureLoadBalancerDeleted(name, region string) error {
...
@@ -2496,7 +2496,7 @@ func (s *AWSCloud) EnsureLoadBalancerDeleted(name, region string) error {
}
}
// Loop through and try to delete them
// Loop through and try to delete them
timeoutAt
:=
time
.
Now
()
.
Add
(
time
.
Second
*
3
00
)
timeoutAt
:=
time
.
Now
()
.
Add
(
time
.
Second
*
6
00
)
for
{
for
{
for
securityGroupID
:=
range
securityGroupIDs
{
for
securityGroupID
:=
range
securityGroupIDs
{
request
:=
&
ec2
.
DeleteSecurityGroupInput
{}
request
:=
&
ec2
.
DeleteSecurityGroupInput
{}
...
@@ -2524,12 +2524,17 @@ func (s *AWSCloud) EnsureLoadBalancerDeleted(name, region string) error {
...
@@ -2524,12 +2524,17 @@ func (s *AWSCloud) EnsureLoadBalancerDeleted(name, region string) error {
}
}
if
time
.
Now
()
.
After
(
timeoutAt
)
{
if
time
.
Now
()
.
After
(
timeoutAt
)
{
return
fmt
.
Errorf
(
"timed out waiting for load-balancer deletion: %s"
,
name
)
ids
:=
[]
string
{}
for
id
:=
range
securityGroupIDs
{
ids
=
append
(
ids
,
id
)
}
return
fmt
.
Errorf
(
"timed out deleting ELB: %s. Could not delete security groups %v"
,
name
,
strings
.
Join
(
ids
,
","
))
}
}
glog
.
V
(
2
)
.
Info
(
"Waiting for load-balancer to delete so we can delete security groups: "
,
name
)
glog
.
V
(
2
)
.
Info
(
"Waiting for load-balancer to delete so we can delete security groups: "
,
name
)
time
.
Sleep
(
5
*
time
.
Second
)
time
.
Sleep
(
10
*
time
.
Second
)
}
}
}
}
...
...
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