From 4f74617897a026c1e22b58eba21a88f46e7996db Mon Sep 17 00:00:00 2001 From: Wainer dos Santos Moschetta Date: Fri, 5 Apr 2024 20:44:47 -0300 Subject: [PATCH] tests: pass --overwrite-existing to aks get-credentials By passing --overwrite-existing to `aks get-credentials` it will stop asking if I want to overwrite the existing credentials. This is handy for running the scripts locally. Signed-off-by: Wainer dos Santos Moschetta --- tests/gha-run-k8s-common.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/gha-run-k8s-common.sh b/tests/gha-run-k8s-common.sh index 9c930bd7ab..6ce754bc13 100644 --- a/tests/gha-run-k8s-common.sh +++ b/tests/gha-run-k8s-common.sh @@ -146,6 +146,7 @@ function get_cluster_credentials() { test_type="${1:-k8s}" az aks get-credentials \ + --overwrite-existing \ -g "$(_print_rg_name ${test_type})" \ -n "$(_print_cluster_name ${test_type})" }