Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 4e0a6294a304
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: b4c36fe4366b
Choose a head ref
  • 2 commits
  • 3 files changed
  • 2 contributors

Commits on Apr 6, 2020

  1. node-problem-detector: init at 0.8.1

    Package is missing, built from Golang sources on GitHub.
    lbpdt committed Apr 6, 2020
    Copy the full SHA
    511cb62 View commit details

Commits on Apr 16, 2020

  1. Merge pull request #84448 from lbpdt/feature/init-node-problem-detector

    node-problem-detector: init at 0.8.1
    bhipple authored Apr 16, 2020
    Copy the full SHA
    b4c36fe View commit details
Showing with 58 additions and 0 deletions.
  1. +6 −0 maintainers/maintainer-list.nix
  2. +50 −0 pkgs/applications/networking/cluster/node-problem-detector/default.nix
  3. +2 −0 pkgs/top-level/all-packages.nix
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
@@ -4225,6 +4225,12 @@
githubId = 32152;
name = "Luka Blaskovic";
};
lbpdt = {
email = "nix@pdtpartners.com";
github = "lbpdt";
githubId = 45168934;
name = "Louis Blin";
};
ldelelis = {
email = "ldelelis@est.frba.utn.edu.ar";
github = "ldelelis";
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{ stdenv, buildGoModule, fetchFromGitHub, systemd }:

buildGoModule rec {
pname = "node-problem-detector";
version = "0.8.1";

src = fetchFromGitHub {
owner = "kubernetes";
repo = pname;
rev = "v${version}";
sha256 = "02avknglmkr9k933a64hkw0rjfxvyh4sc3x70p41b8q2g6vzv2gs";
};

# Project upstream recommends building through vendoring
overrideModAttrs = (_: {
buildCommand = ''
echo "Skipping go.mod, using vendoring instead." && touch $out
'';
});

modSha256 = "0ip26j2h11n1kgkz36rl4akv694yz65hr72q4kv4b3lxcbi65b3p";

# Optionally, a log counter binary can be created to parse journald logs.
# The binary is dynamically linked against systemd libraries, making it a
# Linux-only feature. See 'ENABLE_JOURNALD' upstream:
# https://github.com/kubernetes/node-problem-detector/blob/master/Makefile
subPackages = [ "cmd/nodeproblemdetector" ] ++
stdenv.lib.optionals stdenv.isLinux [ "cmd/logcounter" ];

preBuild = ''
export CGO_ENABLED=${if stdenv.isLinux then "1" else "0"}
'';

buildInputs = stdenv.lib.optionals stdenv.isLinux [ systemd ];

buildFlags = "-mod vendor" +
stdenv.lib.optionalString stdenv.isLinux " -tags journald";

buildFlagsArray = [
"-ldflags="
"-X k8s.io/${pname}/pkg/version.version=v${version}"
];

meta = with stdenv.lib; {
description = "Various problem detectors running on the Kubernetes nodes";
homepage = "https://github.com/kubernetes/node-problem-detector";
license = licenses.asl20;
maintainers = with maintainers; [ lbpdt ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -20816,6 +20816,8 @@ in
geoip = geoipWithDatabase;
};

node-problem-detector = callPackage ../applications/networking/cluster/node-problem-detector { };

notion = callPackage ../applications/window-managers/notion { };

nootka = qt5.callPackage ../applications/audio/nootka { };