Add pvc to cleanup script 40/71340/1
authorMarco Platania <platania@research.att.com>
Fri, 26 Oct 2018 18:48:10 +0000 (14:48 -0400)
committerMarco Platania <platania@research.att.com>
Fri, 26 Oct 2018 18:48:10 +0000 (14:48 -0400)
Change-Id: Ib2388d96ec720fdac6ed7919ea3e9ef5aca721cb
Issue-ID: INT-586
Signed-off-by: Marco Platania <platania@research.att.com>
deployment/heat/onap-oom/scripts/cleanup.sh

index b6583f4..4c84e35 100644 (file)
@@ -15,7 +15,7 @@ if [ $COMPONENT == "dcae" ] || [ $COMPONENT == "DCAE" ]; then
        kubectl delete service consul -n onap
 fi
 
-for op in secrets configmaps pv services deployments statefulsets; do
+for op in secrets configmaps pvc pv services deployments statefulsets; do
        ARRAY=(`kubectl get $op -n onap | grep dev-$COMPONENT | awk '{print $1}'`)
        for i in ${ARRAY[*]}; do
                kubectl delete $op -n onap $i