From 43af76f449c9d0966fed9c3a36b66d29fbaff677 Mon Sep 17 00:00:00 2001 From: Djabx Date: Tue, 21 Jun 2022 11:18:12 +0200 Subject: [PATCH] kubectl: add kubectl-convert plugin (#178334) --- .../networking/cluster/kubernetes/kubectl.nix | 8 ++++++-- pkgs/top-level/all-packages.nix | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/cluster/kubernetes/kubectl.nix b/pkgs/applications/networking/cluster/kubernetes/kubectl.nix index ae8db695b9fe..6a6f9042124b 100644 --- a/pkgs/applications/networking/cluster/kubernetes/kubectl.nix +++ b/pkgs/applications/networking/cluster/kubernetes/kubectl.nix @@ -13,13 +13,17 @@ stdenv.mkDerivation rec { version ; - outputs = [ "out" "man" ]; + outputs = [ "out" "man" "convert" ]; - WHAT = "cmd/kubectl"; + WHAT = lib.concatStringsSep " " [ + "cmd/kubectl" + "cmd/kubectl-convert" + ]; installPhase = '' runHook preInstall install -D _output/local/go/bin/kubectl -t $out/bin + install -D _output/local/go/bin/kubectl-convert -t $convert/bin installManPage docs/man/man1/kubectl* diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 97a619ce2714..1aa0e31acf20 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -27797,6 +27797,7 @@ with pkgs; kubernetes = callPackage ../applications/networking/cluster/kubernetes { }; kubectl = callPackage ../applications/networking/cluster/kubernetes/kubectl.nix { }; + kubectl-convert = kubectl.convert; kubemqctl = callPackage ../applications/networking/cluster/kubemqctl { };