From 1f9625338155e36cfd975c7dab7695eb0ccce291 Mon Sep 17 00:00:00 2001 From: Mark Sagi-Kazar Date: Fri, 5 May 2023 13:19:16 +0100 Subject: [PATCH] kubectl-view-secret: init at 0.10.1 Signed-off-by: Mark Sagi-Kazar --- .../cluster/kubectl-view-secret/default.nix | 29 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/applications/networking/cluster/kubectl-view-secret/default.nix diff --git a/pkgs/applications/networking/cluster/kubectl-view-secret/default.nix b/pkgs/applications/networking/cluster/kubectl-view-secret/default.nix new file mode 100644 index 000000000000..b6f252b21b9e --- /dev/null +++ b/pkgs/applications/networking/cluster/kubectl-view-secret/default.nix @@ -0,0 +1,29 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "kubectl-view-secret"; + version = "0.10.1"; + + src = fetchFromGitHub { + owner = "elsesiy"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-+0uHBzT8cocuDttkvNHnmy/WQ+mfVIc0J0fkhBf4PLI="; + }; + + vendorSha256 = "sha256-A3bB4L4O7j6lnP3c4mF4zVY/fDac6OBM5uKJuCnZR9g="; + + subPackages = [ "./cmd/" ]; + + postInstall = '' + mv $out/bin/cmd $out/bin/kubectl-view-secret + ''; + + meta = with lib; { + description = "Kubernetes CLI plugin to decode Kubernetes secrets"; + homepage = "https://github.com/elsesiy/kubectl-view-secret"; + changelog = "https://github.com/elsesiy/kubectl-view-secret/releases/tag/v${version}"; + license = licenses.mit; + maintainers = [ maintainers.sagikazarmark ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ac013888f76c..470515a5ed4e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -31642,6 +31642,8 @@ with pkgs; kubectl = callPackage ../applications/networking/cluster/kubernetes/kubectl.nix { }; kubectl-convert = kubectl.convert; + kubectl-view-secret = callPackage ../applications/networking/cluster/kubectl-view-secret { }; + kubernetes-metrics-server = callPackage ../applications/networking/cluster/kubernetes-metrics-server { }; kubemqctl = callPackage ../applications/networking/cluster/kubemqctl { };