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
529818c9
Commit
529818c9
authored
Sep 14, 2016
by
Jerzy Szczepkowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed #32366: wrong master pd name during kube-down.
Fixed #32366: wrong master pd name during kube-down.
parent
8f4c0bbc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
util.sh
cluster/gce/util.sh
+4
-2
No files found.
cluster/gce/util.sh
View file @
529818c9
...
...
@@ -1183,12 +1183,14 @@ function kube-down() {
fi
# Delete the master replica pd (possibly leaked by kube-up if master create failed).
if
gcloud compute disks describe
"
${
REPLICA_NAME
}
"
-pd
--zone
"
${
ZONE
}
"
--project
"
${
PROJECT
}
"
&>/dev/null
;
then
# TODO(jszczepkowski): remove also possibly leaked replicas' pds
local
-r
replica-pd
=
"
${
REPLICA_NAME
:-${
MASTER_NAME
}}
-pd"
if
gcloud compute disks describe
"
${
replica
-pd
}
"
--zone
"
${
ZONE
}
"
--project
"
${
PROJECT
}
"
&>/dev/null
;
then
gcloud compute disks delete
\
--project
"
${
PROJECT
}
"
\
--quiet
\
--zone
"
${
ZONE
}
"
\
"
${
REPLICA_NAME
}
"
-pd
"
${
replica
-pd
}
"
fi
# Delete disk for cluster registry if enabled
...
...
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