diff options
author | 2018-03-05 14:06:32 +0000 | |
---|---|---|
committer | 2018-03-05 14:06:32 +0000 | |
commit | b6f992d5421b778cca7549b24f753107505b0b1e (patch) | |
tree | 77ddec3543e050f75f464ca95e14743e724b8cdf /kubernetes/oneclick/deleteAll.bash | |
parent | bc6f0d761337f571079656fe04c4fdfada26ced5 (diff) | |
parent | 042b6850d6a3ff17bf5fdc69867c01ecdfd15439 (diff) |
Merge "One namespace leftover fixes"
Diffstat (limited to 'kubernetes/oneclick/deleteAll.bash')
-rwxr-xr-x | kubernetes/oneclick/deleteAll.bash | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kubernetes/oneclick/deleteAll.bash b/kubernetes/oneclick/deleteAll.bash index 52748bc933..9833af7909 100755 --- a/kubernetes/oneclick/deleteAll.bash +++ b/kubernetes/oneclick/deleteAll.bash @@ -7,12 +7,11 @@ delete_namespace() { } delete_service_account() { - kubectl delete clusterrolebinding $1-$2-admin-binding - printf "Service account $1-$2-admin-binding deleted.\n\n" + kubectl delete clusterrolebinding $1-admin-binding } delete_registry_key() { - kubectl --namespace $1-$2 delete secret ${1}-docker-registry-key + kubectl --namespace $1 delete secret ${1}-docker-registry-key } delete_app_helm() { @@ -134,13 +133,14 @@ printf "\n********** Cleaning up ONAP: ${ONAP_APPS[*]}\n" for i in ${HELM_APPS[@]}; do delete_app_helm $NS $i - delete_service_account $NS $i done if [ "$SINGLE_COMPONENT" == "false" ] then delete_app_helm $NS "config" delete_namespace $NS + delete_registry_key $NS + delete_service_account $NS fi if $WAIT_TERMINATE; then |