94 Commits

Author SHA1 Message Date
Jeremy Edwards
adc587f222 Support filelog watching in Windows. 2021-01-13 17:16:46 +00:00
Jeremy Edwards
aadb16b3d4 Remove Dockerfile.in rewrite hack and use updated arg in Dockerfile 2020-12-08 06:31:29 +00:00
Jeremy Edwards
4adec4bbc6 Introduce Windows build of Node Problem Detector 2020-12-05 23:54:52 +00:00
Lantao Liu
ed783da499 Change default staging bucket.
The new staging bucket for the promoter is `gcr.io/k8s-staging-npd`.
2020-11-20 09:08:35 -08:00
Archit Bansal
44dc4aa6c1 Add health-check-monitor 2020-05-27 14:08:42 -07:00
Xuewei Zhang
fb8304bec8 Rent Boskos project only once per test run.
The old implementation rents Boskos project for each Ginkgo node.
2020-01-03 14:49:35 -08:00
Xuewei Zhang
dd37dfe12c Add e2e tests for reporting filesystem problems
Also added support for running e2e tests in parallel.
2019-12-06 14:49:17 -08:00
Xuewei Zhang
5da72e86bb Add problem maker to simulate problems for e2e test 2019-12-06 14:49:17 -08:00
Xuewei Zhang
5e55ef89f1 Make log-counter respect ENABLE_JOURNALD 2019-11-26 13:58:10 -08:00
Xuewei Zhang
3c80676e94 Fix build tags manipulation in Makefile 2019-11-26 12:12:23 -08:00
Xuewei Zhang
1989ab3681 Allow e2e test to pick up test VM image using image family 2019-09-18 16:09:14 -07:00
Xuewei Zhang
fb7fd239bb Add logic for renting test project from Boskos 2019-09-14 15:22:09 -07:00
Xuewei Zhang
0f0e5eff0f Adding stackdriver exporter 2019-09-12 18:30:00 -07:00
Xuewei Zhang
f9b5e60a43 Add e2e test for NPD
The first test is a very simple test. It installs NPD on a VM, and then
verifies that NPD reports metric host_uptime in Prometheus format.
2019-08-16 01:33:29 -07:00
Michał Sochoń
4641ba114f Bump base image debian-base to tag v1.0.0 to pick up some CVE fixes 2019-08-03 18:21:16 +02:00
Xuewei Zhang
be2647a686 Allow compilation time disabling for each type of Problem Daemon. 2019-06-17 16:02:45 -07:00
Lantao Liu
d520ca89bd Build node-problem-detector from a directory.
Signed-off-by: Lantao Liu <lantaol@google.com>
2019-06-13 18:54:23 -07:00
Zhen Wang
6a1beac0eb Update Makefile and remove godep 2019-06-04 11:49:25 -07:00
Zhen Wang
c9c7864087 Register gcloud as a Docker credential in Makefile 2019-03-22 11:56:45 -07:00
Lantao Liu
4fcad4a236 Update base image for CVE fix. 2018-11-28 15:40:46 -08:00
Zhen Wang
1f636381b8 Detect kubelet and container runtime frequent crashes 2018-11-26 22:41:06 -08:00
Steve Scaffidi
2d77ebde36 Added new targets from previous commits to .PHONY in Makefile 2018-09-12 10:59:07 -04:00
Steve Scaffidi
1ad85f1d01 Enable building the NPD in a docker container
This has several benefits. For example, now I can develop and build linux binaries of the NPD on my mac. Also other devs don't need to make sure they have the systemd headers installed.
2018-09-11 16:22:47 -04:00
Andy Xie
53013dcb05 make VERSION value more flexible 2018-08-21 13:32:25 +08:00
David Ashpole
bf730e9c63 add log-counter go plugin 2018-06-20 15:55:19 -07:00
Tim Hockin
d04b466056 Pass 2: k8s GCR vanity URL 2018-04-06 08:19:02 -07:00
Lantao Liu
eda20e8045 Merge pull request #162 from gkGaneshR/unit-test-options
Unit testing for SetNodeNameOrDie in package cmd/options
2018-03-09 02:15:49 -08:00
gkGaneshR
3868f48586 Include cmd/options in Makefile's test
1. Why is this change necessary ?
 Solves kubernetes/node-problem-detector#163

2. How does this change address the issue ?
 Unit testing for node-problem-detector/cmd/options is yet to be
done and the corresponding package path needs to be included in makefile
test

3. How to verify this change ?
 make test command should run the test TestSetNodeNameOrDie with admin
privileges.

Signed-off-by: gkGaneshR <gkganesh126@gmail.com>
2018-03-02 21:49:07 +05:30
Filipe Brandenburger
ca2fc22678 Use debian-base image from kubernetes repository as base for NPD.
This image is based on Debian Stretch (9) which has a recent version of
systemd libraries that includes all necessary compression algorithms.

I propose using that image unconditionally (instead of Alpine when
journald is disabled) since the image size with debian-base is not that
much of a concern anymore.
2018-02-14 11:54:19 -08:00
Tim Hockin
3468934b7d Pushes go to staging-k8s.gcr.io 2018-02-01 20:11:55 -08:00
Tim Hockin
547c65ef89 Convert registry to k8s.gcr.io 2017-12-22 09:55:16 -08:00
Random-Liu
b4714a4b79 Now gcloud enforce -- before docker args.
Signed-off-by: Random-Liu <lantaol@google.com>
2017-06-21 16:14:41 -07:00
Random-Liu
20ffe37cea Add NPD endpoints: /debug/pprof, /healthz, /conditions. 2017-02-03 11:07:06 -08:00
Random-Liu
e39476300a Update Makefile to support compile journald support 2017-01-19 01:59:09 -08:00
Random-Liu
6637139441 Add release tar ball support. 2017-01-13 11:13:59 -08:00
Random-Liu
aedb371d06 Add --version flag. 2017-01-12 02:07:25 -08:00
andy xie
bb48848931 add fmt and vet make target 2016-12-21 19:20:34 +08:00
andy xie
acfbaa68e0 change travis config script 2016-12-21 16:52:31 +08:00
Euan Kemp
8cdf7b1790 makefile: Make misc improvements
* Add test target and re-use in travis
* Add timeout test target
* Build binary into ./bin folder
* Phony everything
2016-11-21 16:39:01 -08:00
Lantao Liu
9054dab4c8 Get node name from the downward api. 2016-08-22 17:51:15 -07:00
Lantao Liu
5a19ac1868 Get node name from pod, this makes sure that the node
name should always be consistent with kubelet.
2016-08-11 14:22:29 -07:00
Lantao Liu
8759e4d610 Use Patch instead of UpdateStatus. 2016-05-30 19:22:32 -07:00
Lantao Liu
c405bb8bbe Change gcr project to official google_containers 2016-05-19 14:25:57 -07:00
Lantao Liu
f0312655bd Add first version of node-problem-detector 2016-05-17 15:55:33 -07:00