Skip to content

Commit

Permalink
tests: pass --overwrite-existing to aks get-credentials
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
wainersm committed Apr 11, 2024
1 parent 3508f3a commit 4f74617
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/gha-run-k8s-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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})"
}
Expand Down

0 comments on commit 4f74617

Please sign in to comment.