nixpkgs/pkgs/by-name/ku/kube-state-metrics/package.nix
2024-07-20 01:11:28 +00:00

33 lines
724 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "kube-state-metrics";
version = "2.13.0";
src = fetchFromGitHub {
owner = "kubernetes";
repo = "kube-state-metrics";
rev = "v${version}";
hash = "sha256-7lI1RRC/Lw3OcYs3RA3caNvLYS7xEaCoxCM/ioa0goY=";
};
vendorHash = "sha256-Db7GTIC594yfp9gNn+hochpafqiRkLQIM/MTkX2S6E0=";
excludedPackages = [
"./tests/e2e"
"./tools"
];
meta = {
homepage = "https://github.com/kubernetes/kube-state-metrics";
description = "Add-on agent to generate and expose k8s cluster-level metrics";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.eskytthe ];
platforms = lib.platforms.unix;
};
}