Commit Graph

62 Commits

Author SHA1 Message Date
acumino
00fc95a16a Update debian image 2023-02-21 14:30:52 +05:30
Kubernetes Prow Robot
49fbd5cf4b Merge pull request #727 from yordis/fix-spelling
chore: fix misspelling
2023-01-31 10:06:56 -08:00
Yordis Prieto Lazo
0842910049 chore: fix misspelling 2022-12-18 22:58:07 -05:00
Dan
de33c801a5 update BASEIMAGE to debian-base:bullseye-v1.4.2
This is the latest Debian Bullseye image, it is the same as used in other Kubernetes projects, i.e. https://github.com/kubernetes-sigs/blob-csi-driver/pull/765/files
2022-11-14 18:03:55 +00:00
Pratik
0127a75e05 Update comment to be consistent with reality 2022-09-18 20:21:05 -07:00
vteratipally
92745daa62 fix building multi-arch image 2022-08-27 16:28:39 -07:00
Kubernetes Prow Robot
2d5de8d0fa Merge pull request #684 from acumino/multi-arch-image
Create multi-arch image
2022-07-26 12:03:10 -07:00
Sonu Kumar Singh
04e8d009d4 Use buildx for docker builder 2022-07-05 09:37:52 +05:30
varsha teratipally
20c3b6f13c update ginkgo and gomega dependencies 2022-03-24 16:25:03 +00:00
Kelvie Wong
363d01392a Create multi-arch image
For linux arm64 and amd64, as per #586.

I moved the builder image into the same dockerfile, and bumped the Go
version on it. It didn't seem like the builder dockerfile worked with
the latest code anyway (the go modules require go 1.15 and higher).

This requires a recent enough docker install with buildx, as well as
an arm64 builder.

BASEIMAGE is changed to not specify an arch, so that the image will
build on its native arch in buildx.

Example image is on docker hub as:

    kelvie/node-problem-detector:v0.8.10-5-gb0fa610
2022-02-13 01:23:31 -08:00
michelletandya
203116b614 update make clean and .gitignore 2021-08-04 19:45:08 +00:00
michelletandya
49526abf27 Add coverage.out to Makefile 2021-07-23 18:45:44 +00:00
vteratipally
94d8373a9e Update Makefile
Bump image version from v1.0.0 to v.2.0.0 to fix some of the CVEs.
2021-06-11 10:53:11 -07:00
Peter Schuurman
bd2a900a37 Added arm64 targets for linux binaries 2021-05-26 11:23:36 -07:00
Jeremy Edwards
badc7ff781 Build tarballs for each OS introduce SHA-512 2021-05-07 21:21:48 +00:00
Jeremy Edwards
4181ece888 Windows Support: Fix Build Regressions, Tests Pass 2021-03-14 10:24:45 -07:00
Sean McGinnis
487915e9e4 Use GOHOSTOS to switch journald plugin build
This plugin requires libsystemd to compile, which is only available on
Linux. This uses `go env` to determine if the current build platform can
support this or not, and if not, disables the building of the plugin to
allow compilation on Windows and macOS platforms.

Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2021-02-02 20:25:17 -06:00
Sean McGinnis
7e7bc2271e Allow building on macOS
Journald is not available on mac. To allow building the rest of the
project while working on a mac, use the same flag as the Windows build
to skip inclusion of journald.

Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2021-02-02 17:17:38 -06:00
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