Skip to content

Commit

Permalink
steampipePackages.steampipe-plugin-kubernetes: init at 0.29.0
Browse files Browse the repository at this point in the history
  • Loading branch information
PeteE committed Nov 1, 2024
1 parent 58c1ad4 commit 37a6f3f
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/tools/misc/steampipe-packages/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
steampipe-plugin-aws = callPackage ./steampipe-plugin-aws { };
steampipe-plugin-azure = callPackage ./steampipe-plugin-azure { };
steampipe-plugin-github = callPackage ./steampipe-plugin-github { };
steampipe-plugin-kubernetes = callPackage ./steampipe-plugin-kubernetes { };
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
buildGoModule,
fetchFromGitHub,
lib,
nix-update-script,
steampipe,
}:

buildGoModule rec {
pname = "steampipe-plugin-kubernetes";
version = "0.29.0";

src = fetchFromGitHub {
owner = "turbot";
repo = "steampipe-plugin-kubernetes";
rev = "refs/tags/v${version}";
hash = "sha256-EhFCzLHmny2on9EGOEHApkJf+AhU0Bg6FAm2IBLxDZ8=";
};

vendorHash = "sha256-oxOLCD5n4Cjdc9Mt2kyec+SBsJWHmwYIyYs9tJPkxcI=";

ldflags = [
"-s"
"-w"
];

doCheck = true;

installPhase = ''
runHook preInstall
mkdir -p $out
cp $GOPATH/bin/steampipe-plugin-kubernetes $out/steampipe-plugin-kubernetes.plugin
cp -R docs $out/.
cp -R config $out/.
runHook postInstall
'';

passthru.updateScript = nix-update-script { };

meta = {
changelog = "https://github.com/turbot/steampipe-plugin-kubernetes/blob/v${version}/CHANGELOG.md";
description = "Kubernetes Plugin for Steampipe";
homepage = "https://github.com/turbot/steampipe-plugin-kubernetes";
license = lib.licenses.asl20;
longDescription = "Use SQL to instantly query Kubernetes API resources";
maintainers = with lib.maintainers; [ petee ];
platforms = steampipe.meta.platforms;
};
}

0 comments on commit 37a6f3f

Please sign in to comment.