depot/third_party/nixpkgs/pkgs/tools/misc/tfk8s/default.nix
Default email bba55970ba Project import generated by Copybara.
GitOrigin-RevId: 3d1a7716d7f1fccbd7d30ab3b2ed3db831f43bde
2021-04-05 17:23:46 +02:00

38 lines
1.2 KiB
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "tfk8s";
version = "0.1.3";
src = fetchFromGitHub {
owner = "jrhouston";
repo = "tfk8s";
rev = "v${version}";
sha256 = "sha256-3iI5gYfpkxfVylBgniaMeQ73uR8dAjVrdg/eBLRxUR4";
};
vendorSha256 = "sha256-wS5diDQFkt8IAp13d8Yeh8ihLvKWdR0Mbw0fMZpqqKE=";
runVend = true;
buildFlagsArray = [
"-ldflags="
"-s"
"-w"
"-X main.toolVersion=${version}"
"-X main.builtBy=nixpkgs"
];
meta = with lib; {
description = "An utility to convert Kubernetes YAML manifests to Terraform's HCL format.";
license = licenses.mit;
longDescription = ''
tfk8s is a tool that makes it easier to work with the Terraform Kubernetes Provider.
If you want to copy examples from the Kubernetes documentation or migrate existing YAML manifests and use them with Terraform without having to convert YAML to HCL by hand, this tool is for you.
Features:
* Convert a YAML file containing multiple manifests.
* Strip out server side fields when piping kubectl get $R -o yaml | tfk8s --strip
'';
homepage = "https://github.com/jrhouston/tfk8s/";
maintainers = with maintainers; [ superherointj ];
};
}