From ba2c3f052f57923f4bc46052d9276cde7b572e1b Mon Sep 17 00:00:00 2001 From: Aleksandr Didenko Date: Tue, 5 Jul 2016 15:14:14 +0200 Subject: [PATCH] Fix namespace deletion --- ccp/ccp-deploy.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ccp/ccp-deploy.sh b/ccp/ccp-deploy.sh index b8bdae0e4..26265117f 100755 --- a/ccp/ccp-deploy.sh +++ b/ccp/ccp-deploy.sh @@ -32,7 +32,9 @@ assign_node_roles() { } delete_namespace() { - kubectl delete namespace openstack && while kubectl get namespace | grep -q ^openstack ; do sleep 5; done + if kubectl get namespace | grep -q ^openstack ; then + kubectl delete namespace openstack && while kubectl get namespace | grep -q ^openstack ; do sleep 5; done + fi } deploy_microservices() {