3 kubectl delete namespace $1-$2
7 kubectl --namespace $1-$2 delete -f ../$2/all-services.yaml
14 -n [NAMESPACE] : Kubernetes namespace (required)
15 -s true : Include services (default: false)
16 -a [APP] : Specify a specific ONAP component (default: all)
17 from the following choices:
18 sdc, aai ,mso, message-router, robot,
19 vid, sdnc, portal, policy, appc
28 while getopts ":n:u:s:a:" PARAM; do
42 if [[ -z $APP ]]; then
59 if [[ ! -z "$APP" ]]; then
62 ONAP_APPS=('sdc' 'aai' 'mso' 'message-router' 'robot' 'vid' 'sdnc' 'portal' 'policy' 'appc')
65 printf "\n********** Cleaning up ONAP: ${ONAP_APPS[*]}\n"
67 for i in ${ONAP_APPS[@]}; do
69 if [[ "$INCL_SVC" == true ]]; then
70 printf "\nDeleting services **********\n"
72 delete_namespace $NS $i
75 # delete the deployments
76 /bin/bash $i.sh $NS $i 'delete'
81 printf "\n********** Gone **********\n"