aboutsummaryrefslogtreecommitdiffstats
path: root/deployment
diff options
context:
space:
mode:
authormrichomme <morgan.richomme@orange.com>2021-01-04 09:44:50 +0100
committermrichomme <morgan.richomme@orange.com>2021-01-04 09:44:50 +0100
commit23f272cba8221de8e51840dba8a16f678d3ce5cb (patch)
tree7cef5ee0a4f9cc8176beed8ef263469436386a42 /deployment
parent846dd7f1f83214a4bd8bbf81ede5ac8bc12d81fd (diff)
cleanup.sh does not delete AAI cassandra keyspace
Issue-ID: INT-1510 Signed-off-by: mrichomme <morgan.richomme@orange.com> Change-Id: I74a0e0ddd6d023f6e18ebc41b1affb244a27c0b1
Diffstat (limited to 'deployment')
-rwxr-xr-xdeployment/heat/onap-rke/scripts/cleanup.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/deployment/heat/onap-rke/scripts/cleanup.sh b/deployment/heat/onap-rke/scripts/cleanup.sh
index 3a6644b69..9a35791f5 100755
--- a/deployment/heat/onap-rke/scripts/cleanup.sh
+++ b/deployment/heat/onap-rke/scripts/cleanup.sh
@@ -47,6 +47,12 @@ if [ $COMPONENT == "sdnc" ]; then
done
fi
+if [ $COMPONENT == "aai" ]; then
+ for keyspace in aaigraph ; do
+ kubectl -n $NAMESPACE exec dev-cassandra-cassandra-0 -- cqlsh -u cassandra -p cassandra --request-timeout=30 -e "drop keyspace ${keyspace}"
+ done
+fi
+
for op in secrets configmaps pvc pv deployments statefulsets clusterrolebinding jobs; do
ARRAY=(`kubectl get $op -n $NAMESPACE | grep $DEPLOYMENT-$COMPONENT | awk '{print $1}'`)
for i in ${ARRAY[*]}; do