forked from NixOS/nixpkgs
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request NixOS#83519 from yurrriq/add-kubelogin
kubelogin: init at 0.0.6
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
pkgs/applications/networking/cluster/kubelogin/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ stdenv, fetchFromGitHub, buildGoModule, go }: | ||
|
||
buildGoModule rec { | ||
pname = "kubelogin"; | ||
version = "0.0.6"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "Azure"; | ||
repo = pname; | ||
rev = "v${version}"; | ||
sha256 = "18rkjdl8asr5c1kgdm2iqb5qwkfcrv2sk3nns3hhfqzs2v9mxmha"; | ||
}; | ||
|
||
vendorSha256 = "0al8y65xvnwl34jkpqyf6zwr21xn30zswknlym9nnn1n47fyayxb"; | ||
|
||
buildFlagsArray = '' | ||
-ldflags= | ||
-X main.version=${version} | ||
-X main.goVersion=${stdenv.lib.getVersion go} | ||
''; | ||
|
||
meta = with stdenv.lib; { | ||
description = "A Kubernetes credential plugin implementing Azure authentication"; | ||
inherit (src.meta) homepage; | ||
license = licenses.mit; | ||
maintainers = with maintainers; [ yurrriq ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters