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
353c3827
Commit
353c3827
authored
Mar 11, 2016
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #22783 from justinsb/fix_21147
Auto commit by PR queue bot
parents
fc40fad0
6678a3f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
util.sh
cluster/aws/util.sh
+19
-2
No files found.
cluster/aws/util.sh
View file @
353c3827
...
...
@@ -824,6 +824,24 @@ function release-elastic-ip {
fi
}
# Deletes a security group
# usage: delete_security_group <sgid>
function
delete_security_group
{
local
-r
sg_id
=
${
1
}
echo
"Deleting security group:
${
sg_id
}
"
# We retry in case there's a dependent resource - typically an ELB
n
=
0
until
[
$n
-ge
20
]
;
do
$AWS_CMD
delete-security-group
--group-id
${
sg_id
}
>
$LOG
&&
return
n
=
$[$n
+1]
sleep
3
done
echo
"Unable to delete security group:
${
sg_id
}
"
exit
1
}
function
ssh-key-setup
{
if
[[
!
-f
"
$AWS_SSH_KEY
"
]]
;
then
ssh-keygen
-f
"
$AWS_SSH_KEY
"
-N
''
...
...
@@ -1415,8 +1433,7 @@ function kube-down {
continue
fi
echo
"Deleting security group:
${
sg_id
}
"
$AWS_CMD
delete-security-group
--group-id
${
sg_id
}
>
$LOG
delete_security_group
${
sg_id
}
done
subnet_ids
=
$(
$AWS_CMD
describe-subnets
\
...
...
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