From 1982cca0cdad3d6af78b83e250515ef6dcab690d Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 30 Sep 2022 19:22:39 +0200 Subject: zshrc: set USE_GKE_GCLOUD_AUTH_PLUGIN=True for gcloud --- .zsh/zshrc/99_gcloud | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3-54-g00ecf