-
Notifications
You must be signed in to change notification settings - Fork 509
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 is deprecated in v1.22+ #561
Comments
Hi @rd-michel Could you please share your action.yml so we can reproduce? That error is coming from |
@rd-michel If you are generating credentials via |
Hi @bharathkkb
Sorry, I thought I had to enable the GCP auth plugin. Sorry for the confusion. |
I have the same problem. apiVersion: kubeflow.org/v1 |
@junjunjunk When using https://github.com/google-github-actions/get-gke-credentials to generate a kubeconfig, it does not use the auth plugin unless |
@bharathkkb |
For some reason the export command wasn't being picked up and now it is. It works. |
- name: "Auth to GCP exist env"
uses: google-github-actions/auth@v0
with:
credentials_json: ${{ secrets.GOOGLE_SERVICE_ACCOUNT }}
- name: "Set up Cloud SDK"
uses: google-github-actions/setup-gcloud@v0
with:
install_components: 'gke-gcloud-auth-plugin'
- name: "Connect to cluster"
uses: google-github-actions/get-gke-credentials@v0
with:
cluster_name: keptn-test
location: europe-west3-c
project_id: sap-artifactory-dev
use_auth_provider: true Test output:
Are you sure that your approach works? |
@Moon1706 |
I am also encountering this. I believe it is the We should be able to use the version of |
I having a related issue with this in my CI when running Composer commands to delete AirFlow DAGs: The deletion of the DAG from storage works, but I guess the command to delete the DAG from AirFlow's UI requires kubectl. Any indication of what to try next would be great!
|
@James-DBA-Anderson , see this doc. It should explain what's changed and needed. |
Thanks @twistedpair, I was already using
This works locally, but results in the following error in CI: I can't see anything else that I should be trying from that doc. |
@James-DBA-Anderson I think you should use |
Hello 👋 I've created a simple GitHub Action to install I'll try to keep users of To get started, drop this in your workflow: - uses: simenandre/setup-gke-gcloud-auth-plugin@v1 Example when using with - name: Authenticate to GCP 🔒
uses: google-github-actions/auth@v0
with:
workload_identity_provider: ${{ secrets.WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ secrets.SERVICE_ACCOUNT }}
- uses: simenandre/setup-gke-gcloud-auth-plugin@v1 Feel free to open issues and PRs here: https://github.com/simenandre/setup-gke-gcloud-auth-plugin |
Hello guys,
current deprecation warning in one of our deployments (google-github-actions/auth@v0):
4727 gcp.go:120] WARNING: the gcp auth plugin is deprecated in v1.22+, unavailable in v1.25+; use gcloud instead.
To learn more, consult https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke
is this issue already addressed/fixed in a newer version of the setup-gcloud action?
The text was updated successfully, but these errors were encountered: