From a101f3ba504c9d8563a2e735123b43be5984e349 Mon Sep 17 00:00:00 2001 From: Marco Platania Date: Fri, 26 Oct 2018 14:48:10 -0400 Subject: Add pvc to cleanup script Change-Id: Ib2388d96ec720fdac6ed7919ea3e9ef5aca721cb Issue-ID: INT-586 Signed-off-by: Marco Platania --- deployment/heat/onap-oom/scripts/cleanup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'deployment/heat') diff --git a/deployment/heat/onap-oom/scripts/cleanup.sh b/deployment/heat/onap-oom/scripts/cleanup.sh index b6583f4fe..4c84e3566 100644 --- 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 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 -- cgit 1.2.3-korg