Merge pull request #14225 from ZJU-SEL/kube-down-gracefully

Auto commit by PR queue bot
This commit is contained in:
k8s-merge-robot 2015-09-28 21:34:34 -07:00
commit 3742958995

View File

@ -120,10 +120,10 @@ function clear-kubeconfig() {
function tear_down_alive_resources() {
local kubectl="${KUBE_ROOT}/cluster/kubectl.sh"
"${kubectl}" delete rc --all
"${kubectl}" delete pods --all
"${kubectl}" delete svc --all
"${kubectl}" delete pvc --all
"${kubectl}" delete rc --all || true
"${kubectl}" delete pods --all || true
"${kubectl}" delete svc --all || true
"${kubectl}" delete pvc --all || true
}
# Gets username, password for the current-context in kubeconfig, if they exist.