From: Gary Wu Date: Tue, 30 Oct 2018 16:31:05 +0000 (-0700) Subject: Add clusterrolebinding to cleanup script X-Git-Tag: 3.0.0~108 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=65af29fb86a2e0bc3cbd278b11d179e517851028;p=integration.git Add clusterrolebinding to cleanup script Change-Id: Id55ffb594e7440b11c1de9e250acd55eed77ed70 Issue-ID: INT-586 Signed-off-by: Gary Wu --- 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