From 65af29fb86a2e0bc3cbd278b11d179e517851028 Mon Sep 17 00:00:00 2001 From: Gary Wu Date: Tue, 30 Oct 2018 09:31:05 -0700 Subject: Add clusterrolebinding to cleanup script Change-Id: Id55ffb594e7440b11c1de9e250acd55eed77ed70 Issue-ID: INT-586 Signed-off-by: Gary Wu --- deployment/heat/onap-oom/scripts/cleanup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 deployment/heat/onap-oom/scripts/cleanup.sh (limited to 'deployment/heat') diff --git a/deployment/heat/onap-oom/scripts/cleanup.sh b/deployment/heat/onap-oom/scripts/cleanup.sh old mode 100644 new mode 100755 index 4c84e3566..7c2a1e29f --- a/deployment/heat/onap-oom/scripts/cleanup.sh +++ b/deployment/heat/onap-oom/scripts/cleanup.sh @@ -15,7 +15,7 @@ if [ $COMPONENT == "dcae" ] || [ $COMPONENT == "DCAE" ]; then kubectl delete service consul -n onap fi -for op in secrets configmaps pvc pv services deployments statefulsets; do +for op in secrets configmaps pvc pv services deployments statefulsets clusterrolebinding; do ARRAY=(`kubectl get $op -n onap | grep dev-$COMPONENT | awk '{print $1}'`) for i in ${ARRAY[*]}; do kubectl delete $op -n onap $i -- cgit 1.2.3-korg