From d8c4c935e7b92f8b06735da970cbfbbf62ebfffc Mon Sep 17 00:00:00 2001 From: Erik Skytthe Date: Sat, 11 Mar 2023 22:46:58 +0100 Subject: [PATCH] kubernetes-metrics-server: init at version 0.6.2 --- .../kubernetes-metrics-server/default.nix | 27 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/applications/networking/cluster/kubernetes-metrics-server/default.nix diff --git a/pkgs/applications/networking/cluster/kubernetes-metrics-server/default.nix b/pkgs/applications/networking/cluster/kubernetes-metrics-server/default.nix new file mode 100644 index 0000000000000..d9a8e0693e799 --- /dev/null +++ b/pkgs/applications/networking/cluster/kubernetes-metrics-server/default.nix @@ -0,0 +1,27 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "kubernetes-metrics-server"; + version = "0.6.2"; + + src = fetchFromGitHub { + owner = "kubernetes-sigs"; + repo = "metrics-server"; + rev = "v${version}"; + sha256 = "sha256-TTI+dNBQ/jKt6Yhud3/OO+zOkeO46CmUz6J6ByX26JE="; + }; + + vendorSha256 = "sha256-lpSMvHYlPtlJQUqsdXJ6ewBEBiwLPvP/rsUgYzJhOxc="; + + preCheck = '' + # the e2e test breaks the sandbox, so let's skip that + rm test/e2e_test.go + ''; + + meta = with lib; { + homepage = "https://github.com/kubernetes-sigs/metrics-server"; + description = "Kubernetes container resource metrics collector"; + license = licenses.asl20; + maintainers = with maintainers; [ eskytthe ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 12382fb2162cc..372f6f869eaa9 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -31094,6 +31094,8 @@ with pkgs; kubectl = callPackage ../applications/networking/cluster/kubernetes/kubectl.nix { }; kubectl-convert = kubectl.convert; + kubernetes-metrics-server = callPackage ../applications/networking/cluster/kubernetes-metrics-server { }; + kubemqctl = callPackage ../applications/networking/cluster/kubemqctl { }; kubent = callPackage ../applications/networking/cluster/kubent { };