Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kubernetes-helm-mapkubeapis: init at 0.4.1 #301933

Merged
merged 2 commits into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1431,6 +1431,12 @@
githubId = 5411704;
name = "Manuel Sanchez Pinar";
};
aos = {
email = "n@aos.sh";
github = "aos";
githubId = 25783780;
name = "aos";
};
apeschar = {
email = "albert@peschar.net";
github = "apeschar";
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/networking/cluster/helm/plugins/default.nix
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{ callPackage }:

{
helm-cm-push = callPackage ./helm-cm-push.nix { };

helm-diff = callPackage ./helm-diff.nix { };

helm-git = callPackage ./helm-git.nix { };

helm-cm-push = callPackage ./helm-cm-push.nix { };
helm-mapkubeapis = callPackage ./helm-mapkubeapis.nix { };

helm-s3 = callPackage ./helm-s3.nix { };

helm-secrets = callPackage ./helm-secrets.nix { };

helm-unittest = callPackage ./helm-unittest.nix { };

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{ buildGoModule, fetchFromGitHub, lib }:

buildGoModule rec {
pname = "helm-mapkubeapis";
version = "0.4.1";

src = fetchFromGitHub {
owner = "helm";
repo = "helm-mapkubeapis";
rev = "v${version}";
hash = "sha256-6NeePXTdp5vlBLfIlWeXQZMZ0Uz/e1ZCgZmJvBJfaFw=";
};

vendorHash = "sha256-rVrQqeakPQl3rjzmqzHw74ffreLEVzP153wWJ8TEOIM=";

# 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 = "A 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 ];
};
}