diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2022-09-30 19:22:39 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2022-09-30 19:24:21 +0200 |
commit | 1982cca0cdad3d6af78b83e250515ef6dcab690d (patch) | |
tree | ebfbd8c42baeab40b10a1567698a4d7321d6222b | |
parent | 30159235c48cd31eca4bc1bdb79b08a9d76d1d7c (diff) |
zshrc: set USE_GKE_GCLOUD_AUTH_PLUGIN=True for gcloud
-rw-r--r-- | .zsh/zshrc/99_gcloud | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.zsh/zshrc/99_gcloud b/.zsh/zshrc/99_gcloud index 138bba8..39e7b9d 100644 --- a/.zsh/zshrc/99_gcloud +++ b/.zsh/zshrc/99_gcloud @@ -9,4 +9,9 @@ if [ -f /usr/share/google-cloud-sdk/completion.zsh.inc ] ; then source /usr/share/google-cloud-sdk/completion.zsh.inc fi +if [ -x $(which gke-gcloud-auth-plugin) ] ; then + # https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke + export USE_GKE_GCLOUD_AUTH_PLUGIN=True +fi + # vim:ft=zsh |