3 . $(dirname "$0")/setenv.bash
7 kubectl delete namespace $_NS
8 printf "Waiting for namespace $_NS termination...\n"
9 while kubectl get namespaces $_NS > /dev/null 2>&1; do
12 printf "Namespace $_NS deleted.\n\n"
15 delete_registry_key() {
16 kubectl --namespace $1-$2 delete secret onap-docker-registry-key
20 kubectl --namespace $1-$2 delete -f ../$2/all-services.yaml
27 -n [NAMESPACE] : Kubernetes namespace (required)
28 -s true : Include services (default: false)
29 -a [APP] : Specify a specific ONAP component (default: all)
30 from the following choices:
31 sdc, aai ,mso, message-router, robot,
32 vid, sdnc, portal, policy, appc
41 while getopts ":n:u:s:a:" PARAM; do
55 if [[ -z $APP ]]; then
72 if [[ ! -z "$APP" ]]; then
76 printf "\n********** Cleaning up ONAP: ${ONAP_APPS[*]}\n"
78 for i in ${ONAP_APPS[@]}; do
80 # delete the deployments
81 /bin/bash $i.sh $NS $i 'delete'
83 if [[ "$INCL_SVC" == true ]]; then
84 printf "\nDeleting services **********\n"
86 delete_namespace $NS $i
92 printf "\n********** Gone **********\n"