mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-27 19:35:32 +00:00
Merge pull request #9007 from wainersm/aks_delete_rg
gha: delete azure RG only if it exists
This commit is contained in:
commit
fa01a86334
@ -104,10 +104,12 @@ function get_cluster_credentials() {
|
||||
|
||||
function delete_cluster() {
|
||||
test_type="${1:-k8s}"
|
||||
local rg
|
||||
rg="$(_print_rg_name ${test_type})"
|
||||
|
||||
az group delete \
|
||||
-g "$(_print_rg_name ${test_type})" \
|
||||
--yes
|
||||
if [ "$(az group exists -g "${rg}")" == "true" ]; then
|
||||
az group delete -g "${rg}" --yes
|
||||
fi
|
||||
}
|
||||
|
||||
function delete_cluster_kcli() {
|
||||
|
Loading…
Reference in New Issue
Block a user