From edd6f77fff690b866458a2a9cbc8289e5ad38179 Mon Sep 17 00:00:00 2001 From: Peter Romfeld Date: Thu, 24 Mar 2022 10:18:02 +0200 Subject: [PATCH] kubent: init at 0.5.1 --- .../networking/cluster/kubent/default.nix | 29 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/applications/networking/cluster/kubent/default.nix diff --git a/pkgs/applications/networking/cluster/kubent/default.nix b/pkgs/applications/networking/cluster/kubent/default.nix new file mode 100644 index 000000000000..79c0fdf2186a --- /dev/null +++ b/pkgs/applications/networking/cluster/kubent/default.nix @@ -0,0 +1,29 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "kubent"; + version = "0.5.1"; + + src = fetchFromGitHub { + owner = "doitintl"; + repo = "kube-no-trouble"; + rev = "${version}"; + sha256 = "0pwb9g1hhfqn3rl87fg6sf07m7aviadljb05bbnd241hhlcyslv6"; + }; + + vendorSha256 = "1z4cvk936l7011fbimsgpw89yqzyikw9jb4184l37mnj9hl5wpcp"; + + ldflags = [ + "-w" "-s" + "-X main.version=v${version}" + ]; + + subPackages = [ "cmd/kubent" ]; + + meta = with lib; { + homepage = "https://github.com/doitintl/kube-no-trouble"; + description = "Easily check your cluster for use of deprecated APIs"; + license = licenses.mit; + maintainers = with maintainers; [ peterromfeldhk ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 705900fdbd0e..e8d13e462632 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -27109,6 +27109,8 @@ with pkgs; kubemqctl = callPackage ../applications/networking/cluster/kubemqctl { }; + kubent = callPackage ../applications/networking/cluster/kubent { }; + kubeseal = callPackage ../applications/networking/cluster/kubeseal { }; kubernix = callPackage ../applications/networking/cluster/kubernix { };