From 97919e81b8721ae451d3c18d6b5b16ea3b4566f3 Mon Sep 17 00:00:00 2001 From: Marco Platania Date: Mon, 16 Sep 2019 09:14:35 -0400 Subject: Fix DCAE cleanup process Issue-ID: INT-479 Signed-off-by: Marco Platania Change-Id: I360d9887842ac8e86e3a52f7a549367dc63ccb7d --- deployment/heat/onap-rke/scripts/cleanup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'deployment') diff --git a/deployment/heat/onap-rke/scripts/cleanup.sh b/deployment/heat/onap-rke/scripts/cleanup.sh index a39e4edc1..b65c8097c 100755 --- a/deployment/heat/onap-rke/scripts/cleanup.sh +++ b/deployment/heat/onap-rke/scripts/cleanup.sh @@ -13,7 +13,7 @@ NAMESPACE=`echo "$2" | tr '[:upper:]' '[:lower:]'` DEPLOYMENT=`echo "$3" | tr '[:upper:]' '[:lower:]'` if [ $COMPONENT == "dcae" ]; then - ARRAY=(`kubectl get replicasets -n $NAMESPACE | grep $DEPLOYMENT- | awk '{print $1}'`) + ARRAY=(`kubectl get replicasets -n $NAMESPACE | grep $DEPLOYMENT-dcaegen2 | awk '{print $1}'`) for i in ${ARRAY[*]}; do kubectl delete replicaset -n $NAMESPACE $i done -- cgit 1.2.3-korg