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
7419e27e
Commit
7419e27e
authored
Sep 14, 2016
by
Kubernetes Submit Queue
Committed by
GitHub
Sep 14, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #32658 from jszczepkowski/ha-kubedown-fix
Automatic merge from submit-queue Fixed #32366: wrong master pd name during kube-down.
parents
4c716023
529818c9
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 @
7419e27e
...
@@ -1183,12 +1183,14 @@ function kube-down() {
...
@@ -1183,12 +1183,14 @@ function kube-down() {
fi
fi
# Delete the master replica pd (possibly leaked by kube-up if master create failed).
# 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
\
gcloud compute disks delete
\
--project
"
${
PROJECT
}
"
\
--project
"
${
PROJECT
}
"
\
--quiet
\
--quiet
\
--zone
"
${
ZONE
}
"
\
--zone
"
${
ZONE
}
"
\
"
${
REPLICA_NAME
}
"
-pd
"
${
replica
-pd
}
"
fi
fi
# Delete disk for cluster registry if enabled
# 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