networkslice: Added free5gc helm charts.
[icn.git] / demo / networkslice / free5gc / helm / uninstall.sh
1 #! /bin/bash
2
3 NS=(default prioslice)
4 cpdp=${1:-"cplane"}
5
6
7 if [ $cpdp == "cplane" ]; then
8         NF_0=(pcf nssf ausf udm udr nrf mongodb)
9         NF_1=(pcf ausf udm udr nrf)
10 elif [ $cpdp == "dplane" ]; then
11         NF_0=(smf upf amf)
12         NF_1=(smf upf)
13 else
14         echo "Unknown Option $cpdp"
15         echo "Allowed options are: cplane dplane"
16         exit 2
17 fi
18
19 for i in ${NF_1[@]}
20 do
21         helm uninstall free5g-$i-${NS[1]} --namespace ${NS[1]}
22         sleep 5
23 done
24
25 for i in ${NF_0[@]}
26 do
27         helm uninstall free5g-$i-${NS[0]} --namespace ${NS[0]}
28         sleep 5
29 done
30 kubectl get pods -o wide -n ${NS[1]}
31 kubectl get pods -o wide -n ${NS[0]}