Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
39 lines
991 B
Nix
39 lines
991 B
Nix
{
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
lib,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "helm-mapkubeapis";
|
|
version = "0.6.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "helm";
|
|
repo = "helm-mapkubeapis";
|
|
rev = "v${version}";
|
|
hash = "sha256-RvyoqfhvoXESmc6M4B1XeUtal0zQt6LCKjByyBe6pUU=";
|
|
};
|
|
|
|
vendorHash = "sha256-ZnfNje0JuTCckW9SMc2TLb968nHiGK/bgOJnIllJJq4=";
|
|
|
|
# NOTE: Remove the install and upgrade hooks.
|
|
postPatch = ''
|
|
sed -i '/^hooks:/,+2 d' plugin.yaml
|
|
'';
|
|
|
|
postInstall = ''
|
|
install -dm755 $out/helm-mapkubeapis
|
|
mv $out/bin $out/helm-mapkubeapis/
|
|
install -m644 -Dt $out/helm-mapkubeapis/config/ config/Map.yaml
|
|
install -m644 -Dt $out/helm-mapkubeapis plugin.yaml
|
|
'';
|
|
|
|
meta = {
|
|
description = "Helm plugin which maps deprecated or removed Kubernetes APIs in a release to supported APIs";
|
|
homepage = "https://github.com/helm/helm-mapkubeapis";
|
|
license = with lib.licenses; [ asl20 ];
|
|
maintainers = with lib.maintainers; [ aos ];
|
|
};
|
|
}
|