aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2018-10-30 09:31:05 -0700
committerGary Wu <gary.i.wu@huawei.com>2018-10-30 09:31:05 -0700
commit65af29fb86a2e0bc3cbd278b11d179e517851028 (patch)
treecf1833b481969dca037ceefc171d0077c0bb4104
parentfdd87093348ff275b5e526a30b787dcdebd7a92a (diff)
Add clusterrolebinding to cleanup script
Change-Id: Id55ffb594e7440b11c1de9e250acd55eed77ed70 Issue-ID: INT-586 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
-rwxr-xr-x[-rw-r--r--]deployment/heat/onap-oom/scripts/cleanup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/deployment/heat/onap-oom/scripts/cleanup.sh b/deployment/heat/onap-oom/scripts/cleanup.sh
index 4c84e3566..7c2a1e29f 100644..100755
--- 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