Merge "AIAP: Cleanup kubeconfig after running aks script"

This commit is contained in:
Zuul 2021-09-07 19:53:54 +00:00 committed by Gerrit Code Review
commit 7dab6429d6

View File

@ -63,4 +63,7 @@ done
if ${CLEANUP_GROUP}; then
echo "deleting resource group ${GROUP}..."
az group delete --name ${GROUP} -y
kubectl config delete-user "clusterUser_${GROUP}_${CLUSTER}"
kubectl config delete-cluster "${CLUSTER}"
kubectl config delete-context "${CLUSTER}"
fi