mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-13 15:14:08 +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() {
|
function delete_cluster() {
|
||||||
test_type="${1:-k8s}"
|
test_type="${1:-k8s}"
|
||||||
|
local rg
|
||||||
|
rg="$(_print_rg_name ${test_type})"
|
||||||
|
|
||||||
az group delete \
|
if [ "$(az group exists -g "${rg}")" == "true" ]; then
|
||||||
-g "$(_print_rg_name ${test_type})" \
|
az group delete -g "${rg}" --yes
|
||||||
--yes
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function delete_cluster_kcli() {
|
function delete_cluster_kcli() {
|
||||||
|
Loading…
Reference in New Issue
Block a user