From cff87c20176b7f8abb6ff437f9d3986d12e69790 Mon Sep 17 00:00:00 2001 From: lparam Date: Thu, 28 Jul 2016 09:20:56 +0800 Subject: [PATCH] Delete all deployments when tear down cluster alive resources --- cluster/common.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/cluster/common.sh b/cluster/common.sh index 2a0812829d..57a2cd8b06 100755 --- a/cluster/common.sh +++ b/cluster/common.sh @@ -170,6 +170,7 @@ function create-kubeconfig-for-federation() { function tear_down_alive_resources() { local kubectl="${KUBE_ROOT}/cluster/kubectl.sh" + "${kubectl}" delete deployments --all || true "${kubectl}" delete rc --all || true "${kubectl}" delete pods --all || true "${kubectl}" delete svc --all || true