Skip to content

Commit

Permalink
fix(gcp): skip auth on taito_continue mode
Browse files Browse the repository at this point in the history
  • Loading branch information
keskiju committed Dec 12, 2024
1 parent a874cb4 commit 0acdf95
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/gcp/hooks/pre-50
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ fi
# Authenticate automatically if $GOOGLE_APPLICATION_CREDENTIALS has been set
# But skip when there is no environment
if [[ $GOOGLE_APPLICATION_CREDENTIALS ]] &&
[[ $taito_continue != "true" ]] &&
! ([[ ${taito_mode:-} == "ci" ]] && [[ ${taito_ci_no_env:-} == "true" ]]); then
if [[ ${taito_verbose:-} == true ]]; then
echo "GOOGLE_APPLICATION_CREDENTIALS: $GOOGLE_APPLICATION_CREDENTIALS"
Expand Down Expand Up @@ -52,6 +53,7 @@ fi

# Authenticate on Kubernetes
if [[ $force_kube_login_hack == "true" ]] || ( \
[[ $taito_continue != "true" ]] && \
# We skip gcloud auth when GOOGLE_SQL_PROXY_CREDENTIALS is set
# to mitigate gcloud IPv6 connection problems
[[ ! "${GOOGLE_SQL_PROXY_CREDENTIALS}" ]] && \
Expand Down

0 comments on commit 0acdf95

Please sign in to comment.