Merge pull request #118694 from benley/kubelogin-oidc

kubelogin-oidc: init at 1.23.0
This commit is contained in:
Sandro 2021-04-09 02:39:06 +02:00 committed by GitHub
commit e86802afa7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,30 @@
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "kubelogin";
version = "1.23.0";
src = fetchFromGitHub {
owner = "int128";
repo = pname;
rev = "v${version}";
sha256 = "0n94nx17c6ln2nd6d9yr93vc251y1xphq1wj2vzs4j2l8dqfyjpn";
};
subPackages = ["."];
vendorSha256 = "1dvrk6z6k66wawgb50n8hbgdd8fly399mlbgnvxi671vfi7lkz09";
# Rename the binary instead of symlinking to avoid conflict with the
# Azure version of kubelogin
postInstall = ''
mv $out/bin/kubelogin $out/bin/kubectl-oidc_login
'';
meta = with lib; {
description = "A Kubernetes credential plugin implementing OpenID Connect (OIDC) authentication";
inherit (src.meta) homepage;
license = licenses.asl20;
maintainers = with maintainers; [ benley ];
};
}

View File

@ -23933,6 +23933,8 @@ in
kubelogin = callPackage ../applications/networking/cluster/kubelogin { };
kubelogin-oidc = callPackage ../applications/networking/cluster/kubelogin-oidc { };
k9s = callPackage ../applications/networking/cluster/k9s { };
pgo-client = callPackage ../applications/networking/cluster/pgo-client { };