mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-02 01:39:02 +00:00
Future proof GKE kubeconfig handling in e2e driver
This commit is contained in:
@@ -105,10 +105,10 @@ if [[ "$KUBERNETES_PROVIDER" == "gke" ]]; then
|
||||
config=(
|
||||
"--context=gke_${PROJECT}_${ZONE}_${CLUSTER_NAME}"
|
||||
)
|
||||
# In gcloud versions prior to 0.9.59, GKE stores it's kubeconfig
|
||||
# In gcloud versions prior to 0.9.59, GKE stores its kubeconfig
|
||||
# in a separate location. If the file doesn't exist, then use
|
||||
# the default kubeconfig file.
|
||||
# TODO(roberthbailey): Remove this once gcloud 0.9.59 is released.
|
||||
# TODO(roberthbailey): Remove this once gcloud 0.9.59 or above is released.
|
||||
if [[ -e "${HOME}/.config/gcloud/kubernetes/kubeconfig" ]]; then
|
||||
config+=(
|
||||
"--kubeconfig=${HOME}/.config/gcloud/kubernetes/kubeconfig"
|
||||
|
Reference in New Issue
Block a user