kubelogin-oidc: 1.30.0 -> 1.30.1 (#346100)

- Diff: https://github.com/int128/kubelogin/compare/v1.30.0...v1.30.1
- Pinned buildGo123Module to fix build
- Added version in ldflags for correct version reporting
- Run all package tests during build
- Moved to by-name
- Added myself as maintainer
This commit is contained in:
Yongun Seong
2024-10-03 11:44:57 -04:00
committed by GitHub
parent f8c445bd75
commit 40d78f5d7b
2 changed files with 26 additions and 11 deletions
@@ -1,31 +1,48 @@
{ lib, buildGoModule, fetchFromGitHub }:
{
lib,
buildGo123Module,
fetchFromGitHub,
}:
buildGoModule rec {
buildGo123Module rec {
pname = "kubelogin";
version = "1.30.0";
version = "1.30.1";
src = fetchFromGitHub {
owner = "int128";
repo = pname;
repo = "kubelogin";
rev = "v${version}";
sha256 = "sha256-DHg46t0gMypK6Nj428gpOMtPuA+XcW4IJU39CHTVGPw=";
hash = "sha256-aoLPT3lX+q426QlxAPsjeQyTZMnmqMGh85jJPU7lQVU=";
};
subPackages = ["."];
subPackages = [ "." ];
ldflags = [
"-s"
"-w"
"-X main.version=v${version}"
];
vendorHash = "sha256-gr+SsC7MiLj/MZ8kca5Hcfge+7Pm4y963TfwyKHEhBY=";
# test all packages
preCheck = ''
unset subPackages
'';
# 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; {
meta = {
description = "Kubernetes credential plugin implementing OpenID Connect (OIDC) authentication";
mainProgram = "kubectl-oidc_login";
inherit (src.meta) homepage;
license = licenses.asl20;
maintainers = with maintainers; [ benley ];
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [
benley
nevivurn
];
};
}
-2
View File
@@ -30752,8 +30752,6 @@ with pkgs;
kubelogin = callPackage ../applications/networking/cluster/kubelogin { };
kubelogin-oidc = callPackage ../applications/networking/cluster/kubelogin-oidc { };
kubevpn = callPackage ../applications/networking/cluster/kubevpn { };
k8sgpt = callPackage ../applications/networking/cluster/k8sgpt { };