diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2019-04-26 10:28:32 -0700 |
---|---|---|
committer | Gary Wu <gary.i.wu@huawei.com> | 2019-04-26 10:28:32 -0700 |
commit | 1dde733c6559f457100df88881fdf37f98736b06 (patch) | |
tree | ee640e356049cefce57c6326e4afd838947285c0 /deployment/heat/onap-oom/scripts/cleanup.sh | |
parent | c12b184ae4be01578088e861289c20b95c1c485b (diff) |
Remove old Rancher-based deployment scripts
Remove the old Rancher-based deployment scripts now
that we're moving to RKE.
Change-Id: I54356e77cf38076e4b2ac21f4fcd682586f40205
Issue-ID: OOM-1598
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'deployment/heat/onap-oom/scripts/cleanup.sh')
-rwxr-xr-x | deployment/heat/onap-oom/scripts/cleanup.sh | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/deployment/heat/onap-oom/scripts/cleanup.sh b/deployment/heat/onap-oom/scripts/cleanup.sh deleted file mode 100755 index 7c2a1e29f..000000000 --- a/deployment/heat/onap-oom/scripts/cleanup.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash - -IFS=' -' - -if [ -z $1 ]; then - echo "ONAP component name missing" - echo "Usage: ./cleanup.sh onap_component_name" - exit 1 -fi - -COMPONENT=$1 - -if [ $COMPONENT == "dcae" ] || [ $COMPONENT == "DCAE" ]; then - kubectl delete service consul -n onap -fi - -for op in secrets configmaps pvc pv services deployments statefulsets clusterrolebinding; do - ARRAY=(`kubectl get $op -n onap | grep dev-$COMPONENT | awk '{print $1}'`) - for i in ${ARRAY[*]}; do - kubectl delete $op -n onap $i - done -done |