summaryrefslogtreecommitdiff
path: root/.zsh/zshrc/99_gcloud
diff options
context:
space:
mode:
Diffstat (limited to '.zsh/zshrc/99_gcloud')
-rw-r--r--.zsh/zshrc/99_gcloud5
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