From a8b67b4f5d5b213e3aa83a8d0b79d78d8b1fbf44 Mon Sep 17 00:00:00 2001 From: Sibi Prabakaran Date: Tue, 21 Dec 2021 11:16:28 +0530 Subject: [PATCH] kubergrunt: init at 0.7.11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a helper utility which allows to configure EKS clusters etc. Tested it locally on a NixOS machine: ``` shellsession ❯ kubergrunt help Usage: kubergrunt [--loglevel] [--help] command [options] [args] A CLI tool to help setup and manage a Kubernetes cluster. Commands: eks Helper commands to configure EKS. k8s Helper scripts for managing Kubernetes resources directly. tls Helper commands to manage TLS certificate key pairs as Kubernetes Secrets. help, h Shows a list of commands or help for one command ``` --- .../networking/cluster/kubergrunt/default.nix | 33 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/applications/networking/cluster/kubergrunt/default.nix diff --git a/pkgs/applications/networking/cluster/kubergrunt/default.nix b/pkgs/applications/networking/cluster/kubergrunt/default.nix new file mode 100644 index 000000000000..733bb3c59412 --- /dev/null +++ b/pkgs/applications/networking/cluster/kubergrunt/default.nix @@ -0,0 +1,33 @@ +{ buildGoModule, lib, fetchFromGitHub }: + +buildGoModule rec { + pname = "kubergrunt"; + version = "0.7.11"; + + src = fetchFromGitHub { + owner = "gruntwork-io"; + repo = "kubergrunt"; + rev = "v${version}"; + sha256 = "1224ssqdz9ak0vylyfbr9c2w0yfdp4hw9jh99qmfi2j5nhw9kzcc"; + }; + + vendorSha256 = "1hbb3hn8mzz9h9p1rl35izz3l6c2rqsg8aq6dgpbpsf5krp3zs3v"; + + # Disable tests since it requires network access and relies on the + # presence of certain AWS infrastructure + doCheck = false; + + runVend = true; + + postInstall = '' + # The binary is named kubergrunt + mv $out/bin/cmd $out/bin/kubergrunt + ''; + + meta = with lib; { + description = "Collection of commands to fill in the gaps between Terraform, Helm, and Kubectl"; + homepage = "https://github.com/gruntwork-io/kubergrunt"; + license = licenses.asl20; + maintainers = with maintainers; [ psibi ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 706bb66d6a8f..8ddd7beeaaa6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6906,6 +6906,8 @@ with pkgs; kubepug = callPackage ../development/tools/kubepug { }; + kubergrunt = callPackage ../applications/networking/cluster/kubergrunt { }; + kwalletcli = libsForQt5.callPackage ../tools/security/kwalletcli { }; peruse = libsForQt5.callPackage ../tools/misc/peruse { };