Merge pull request #115544 from superherointj/package-tfk8s
tfk8s: init at 0.1.0
This commit is contained in:
commit
255eac0c93
2 changed files with 40 additions and 0 deletions
38
pkgs/tools/misc/tfk8s/default.nix
Normal file
38
pkgs/tools/misc/tfk8s/default.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "tfk8s";
|
||||
version = "0.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jrhouston";
|
||||
repo = "tfk8s";
|
||||
rev = version;
|
||||
sha256 = "sha256-JzTWbkICOIfsHgMvpXz4bIWaXKKDAD8INSorMvnXiBw=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-r0c3y+nRc/hCTAT31DasQjxZN86BT8jnJmsLM7Ugrq4=";
|
||||
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 ];
|
||||
};
|
||||
}
|
|
@ -755,6 +755,8 @@ in
|
|||
|
||||
metapixel = callPackage ../tools/graphics/metapixel { };
|
||||
|
||||
tfk8s = callPackage ../tools/misc/tfk8s { };
|
||||
|
||||
xtrt = callPackage ../tools/archivers/xtrt { };
|
||||
|
||||
yabridge = callPackage ../tools/audio/yabridge {
|
||||
|
|
Loading…
Reference in a new issue