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

gke-gcloud-auth-plugin #182856

Closed
nyarly opened this issue Jul 25, 2022 · 8 comments · Fixed by #193554
Closed

gke-gcloud-auth-plugin #182856

nyarly opened this issue Jul 25, 2022 · 8 comments · Fixed by #193554
Labels
0.kind: packaging request Request for a new package to be added

Comments

@nyarly
Copy link
Contributor

nyarly commented Jul 25, 2022

Project description

Tool used by GKE to do go-client kubernetes auth. If google-cloud-sdk is installed via nixpkgs, so ought gke-cloud-auth-plugin

Metadata

@nyarly nyarly added the 0.kind: packaging request Request for a new package to be added label Jul 25, 2022
@rrrnld
Copy link
Contributor

rrrnld commented Jul 26, 2022

@shinzui
Copy link

shinzui commented Aug 17, 2022

Both the reference source URL and the linked flake repo would not work on darwin machines. Ideally, the google-cloud-sdk would support specifying which components to install declaratively.

@michielboekhoff
Copy link
Contributor

Maybe this doesn't apply to Darwin, but on NixOS I am able to do google-cloud-sdk.withExtraComponents [google-cloud-sdk.components.gke-gcloud-auth-plugin] and it shows as having been installed.

@shinzui
Copy link

shinzui commented Sep 7, 2022

It looks like support for withExtraComponents was added on August 21st, and it didn't get merged to nixpkgs-unstable yet.

@jupblb
Copy link
Contributor

jupblb commented Sep 7, 2022

I believe it already is at nixpkgs-unstable: https://nixpk.gs/pr-tracker.html?pr=187793

@shinzui
Copy link

shinzui commented Sep 7, 2022

@jupblb, thank you for pointing me to nixpkg.gs. That should save me time from checking my local clone.

@cyounkins
Copy link
Contributor

For reasons that are unclear to me, when using home-manager I had to do

let
  gcloud = pkgs.google-cloud-sdk.withExtraComponents [ pkgs.google-cloud-sdk.components.gke-gcloud-auth-plugin ];
in
{
...
  home.packages = with pkgs; [
    gcloud
  ];
}

@pedro93
Copy link

pedro93 commented Jan 24, 2025

@cyounkins your suggestion worked, thank you very much for that!
Do you have any idea why the variable needs to be defined?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: packaging request Request for a new package to be added
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants