Add clusterrolebinding to cleanup script 83/71483/1
authorGary Wu <gary.i.wu@huawei.com>
Tue, 30 Oct 2018 16:31:05 +0000 (09:31 -0700)
committerGary Wu <gary.i.wu@huawei.com>
Tue, 30 Oct 2018 16:31:05 +0000 (09:31 -0700)
Change-Id: Id55ffb594e7440b11c1de9e250acd55eed77ed70
Issue-ID: INT-586
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
deployment/heat/onap-oom/scripts/cleanup.sh [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 4c84e35..7c2a1e2
@@ -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