Fix DCAE cleanup process 42/95742/1
authorMarco Platania <platania@research.att.com>
Mon, 16 Sep 2019 13:14:35 +0000 (09:14 -0400)
committerMarco Platania <platania@research.att.com>
Mon, 16 Sep 2019 13:16:07 +0000 (09:16 -0400)
Issue-ID: INT-479

Signed-off-by: Marco Platania <platania@research.att.com>
Change-Id: I360d9887842ac8e86e3a52f7a549367dc63ccb7d

deployment/heat/onap-rke/scripts/cleanup.sh

index a39e4ed..b65c809 100755 (executable)
@@ -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