GoogleCloudPlatform / microservices-demo

Sample cloud-first application with 10 microservices showcasing Kubernetes, Istio, and gRPC.
https://cymbal-shops.retail.cymbal.dev
Apache License 2.0
16.77k stars 7.17k forks source link

DeployStack test fails due to unused `gke-gcloud-auth-plugin` #1511

Closed NimJay closed 1 year ago

NimJay commented 1 year ago

Describe the bug

To Reproduce

Environment

NimJay commented 1 year ago

We have gke-cloud-auth-plugin

I ran gcloud version inside the gcr.io/cloudshell-images/cloudshell:latest image. Snippet of the output:

Google Cloud SDK 412.0.0
alpha 2022.12.09
...
gke-gcloud-auth-plugin 0.4.0
...

So it looks like the gke-gcloud-auth-plugin binary exists inside the image! 😌

I even ran gke-gcloud-auth-plugin --version (as suggested by this GCP blog post). The output:

Kubernetes v1.25.2-alpha+ae91c1fc0c443c464a4c878ffa2a4544483c6d1f

The gke-gcloud-auth-plugin binary definitely exists!

We need USE_GKE_GCLOUD_AUTH_PLUGIN

According to the GCP blog post, in addition to installing gke-gcloud-auth-plugin, we need to also run:

export USE_GKE_GCLOUD_AUTH_PLUGIN=True

if the gke-gcloud-auth-plugin plugin was installed prior to the release of Kubernetes 1.26. Adding export USE_GKE_GCLOUD_AUTH_PLUGIN=True to /.deploystack/test fixes our problem!

NimJay commented 1 year ago

This was fixed in https://github.com/GoogleCloudPlatform/microservices-demo/pull/1512.