Merge pull request #301933 from aos/aos/helm-mapkubeapis

authored by Sandro and committed by GitHub 33489534 1be0aa4a

+42 -2
+6
maintainers/maintainer-list.nix
··· 1448 1448 githubId = 5411704; 1449 1449 name = "Manuel Sanchez Pinar"; 1450 1450 }; 1451 + aos = { 1452 + email = "n@aos.sh"; 1453 + github = "aos"; 1454 + githubId = 25783780; 1455 + name = "aos"; 1456 + }; 1451 1457 apeschar = { 1452 1458 email = "albert@peschar.net"; 1453 1459 github = "apeschar";
+2 -2
pkgs/applications/networking/cluster/helm/plugins/default.nix
··· 1 1 { callPackage }: 2 2 3 3 { 4 + helm-cm-push = callPackage ./helm-cm-push.nix { }; 4 5 5 6 helm-diff = callPackage ./helm-diff.nix { }; 6 7 7 8 helm-git = callPackage ./helm-git.nix { }; 8 9 9 - helm-cm-push = callPackage ./helm-cm-push.nix { }; 10 + helm-mapkubeapis = callPackage ./helm-mapkubeapis.nix { }; 10 11 11 12 helm-s3 = callPackage ./helm-s3.nix { }; 12 13 13 14 helm-secrets = callPackage ./helm-secrets.nix { }; 14 15 15 16 helm-unittest = callPackage ./helm-unittest.nix { }; 16 - 17 17 }
+34
pkgs/applications/networking/cluster/helm/plugins/helm-mapkubeapis.nix
··· 1 + { buildGoModule, fetchFromGitHub, lib }: 2 + 3 + buildGoModule rec { 4 + pname = "helm-mapkubeapis"; 5 + version = "0.4.1"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "helm"; 9 + repo = "helm-mapkubeapis"; 10 + rev = "v${version}"; 11 + hash = "sha256-6NeePXTdp5vlBLfIlWeXQZMZ0Uz/e1ZCgZmJvBJfaFw="; 12 + }; 13 + 14 + vendorHash = "sha256-rVrQqeakPQl3rjzmqzHw74ffreLEVzP153wWJ8TEOIM="; 15 + 16 + # NOTE: Remove the install and upgrade hooks. 17 + postPatch = '' 18 + sed -i '/^hooks:/,+2 d' plugin.yaml 19 + ''; 20 + 21 + postInstall = '' 22 + install -dm755 $out/helm-mapkubeapis 23 + mv $out/bin $out/helm-mapkubeapis/ 24 + install -m644 -Dt $out/helm-mapkubeapis/config/ config/Map.yaml 25 + install -m644 -Dt $out/helm-mapkubeapis plugin.yaml 26 + ''; 27 + 28 + meta = { 29 + description = "A Helm plugin which maps deprecated or removed Kubernetes APIs in a release to supported APIs"; 30 + homepage = "https://github.com/helm/helm-mapkubeapis"; 31 + license = with lib.licenses; [ asl20 ]; 32 + maintainers = with lib.maintainers; [ aos ]; 33 + }; 34 + }