mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-07 04:03:20 +00:00
Future proof GKE kubeconfig handling in e2e driver
This commit is contained in:
@@ -87,7 +87,10 @@ if [[ -z "${AUTH_CONFIG:-}" ]]; then
|
||||
|
||||
detect-master >/dev/null
|
||||
|
||||
if [[ "${KUBERNETES_PROVIDER}" == "gke" ]]; then
|
||||
# In gcloud versions < 0.9.59, GKE stores its kubeconfig in a separate
|
||||
# location.
|
||||
# TODO: Remove this once gcloud 0.9.59 or above is released.
|
||||
if [[ "${KUBERNETES_PROVIDER}" == "gke" && -e "${GCLOUD_CONFIG_DIR}/kubeconfig" ]]; then
|
||||
# GKE stores its own kubeconfig in gcloud's config directory.
|
||||
detect-project &> /dev/null
|
||||
auth_config=(
|
||||
|
Reference in New Issue
Block a user