Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GCP auth plugin will be unavailable in K8s 1.25 #192

Open
mbelchev opened this issue May 15, 2023 · 0 comments
Open

GCP auth plugin will be unavailable in K8s 1.25 #192

mbelchev opened this issue May 15, 2023 · 0 comments

Comments

@mbelchev
Copy link

mbelchev commented May 15, 2023

Is your feature request related to a problem?

The plugin outputs the following warning message due to the introduced changes from the GCP side in regard to the GKE authentication (ref: https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke):
WARNING: the gcp auth plugin is deprecated in v1.22+, unavailable in v1.25+; use gcloud instead.

Therefore it'll become a problem for some users using the newer Kubernetes versions.

Describe the solution you'd like
The official solution, provided by GCP is to set the USE_GKE_GCLOUD_AUTH_PLUGIN environment variable to True (check the ref doc above).

This can be set in the plugin's image (https://github.com/nytimes/drone-gke/blob/main/Dockerfile#L7) by default. But it has to be double-checked how it affects the previous Kubernetes versions. Maybe it's worth adding some logic to conditionally enable it based on some version detection at run time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant