corrected the hardcoded DB pod-names 72/103672/2
authorandreasgeissler <andreas-geissler@telekom.de>
Fri, 13 Mar 2020 14:13:35 +0000 (15:13 +0100)
committerMarco Platania <platania@research.att.com>
Wed, 25 Mar 2020 15:38:57 +0000 (15:38 +0000)
Issue-ID: INT-1484

Signed-off-by: andreasgeissler <andreas-geissler@telekom.de>
Change-Id: I7f1670a79db751087f722a1196e2de23448f7a2a

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

index b65c809..3a6644b 100755 (executable)
@@ -31,19 +31,19 @@ fi
 
 if [ $COMPONENT == "sdc" ]; then
         for keyspace in sdctitan sdcrepository sdcartifact sdccomponent sdcaudit workflow dox zusammen_dox zusammen_workflow ; do
-               kubectl -n $NAMESPACE exec dev-cassandra-cassandra-0 -- cqlsh -u cassandra -p cassandra --request-timeout=30 -e "drop keyspace ${keyspace}"
+               kubectl -n $NAMESPACE exec $DEPLOYMENT-cassandra-0 -- cqlsh -u cassandra -p cassandra --request-timeout=30 -e "drop keyspace ${keyspace}"
         done
 fi
 
 if [ $COMPONENT == "so" ]; then
         for database in camundabpmn catalogdb requestdb; do
-               kubectl -n $NAMESPACE exec dev-mariadb-galera-mariadb-galera-0 -- mysql -uroot -psecretpassword -e "drop database ${database}"
+               kubectl -n $NAMESPACE exec $DEPLOYMENT-mariadb-galera-0 -- mysql -uroot -psecretpassword -e "drop database ${database}"
         done
 fi
 
 if [ $COMPONENT == "sdnc" ]; then
         for database in sdnctl; do
-               kubectl -n $NAMESPACE exec dev-mariadb-galera-mariadb-galera-0 -- mysql -uroot -psecretpassword -e "drop database ${database}"
+               kubectl -n $NAMESPACE exec $DEPLOYMENT-mariadb-galera-0 -- mysql -uroot -psecretpassword -e "drop database ${database}"
         done
 fi