29 Commits

Author SHA1 Message Date
novahe
8844692098 Remove the invalid node.UID 2025-10-23 23:10:34 +08:00
Sergey Kanzhelev
ad9436c5c9 fix linter issues 2025-10-22 22:36:03 +00:00
marinoborges
6d71278653 Fix newFakeProblemClient call 2025-10-13 16:36:03 -03:00
marinoborges
0de0e3bc53 Set APIVersion:v1 for node events 2025-10-09 00:42:49 -03:00
Sergey Kanzhelev
0ce333bbc5 enabled and fixed the errcheck linter rule 2025-09-10 21:45:46 +00:00
Sergey Kanzhelev
a3a4504706 fix the static ckeck linter issues 2025-09-08 19:10:28 +00:00
Sergey Kanzhelev
75bf501888 format imports 2025-08-13 16:56:32 +00:00
Nick Parker
8d237a6c7c feat(k8sExporter): Options to allow disabling Events or Node Conditions
Both outputs are currently hardcoded to being enabled, this allows disabling one or the other. Defaults to both enabled to retain current behavior.

Larger clusters can save some etcd I/O by skipping one of these outputs if they aren't being consumed. In our case we aren't consuming the Events so writing them just creates more churn.
2025-02-04 14:53:19 +13:00
googs1025
0d756b78fc chore: qps flag: use float32 instead of float64 2024-11-06 13:09:20 +08:00
googs1025
17dcc94418 feature: add QPS Burst flags 2024-10-27 21:58:45 +08:00
Eric Lin
7dd7c14868 Get Node object from APIServer cache 2024-02-20 14:23:13 +00:00
j4ckstraw
e31cf7b137 fix: fix pprof by register handlers explicitly
see https://pkg.go.dev/net/http/pprof
> By default, all the profiles listed in runtime/pprof.Profile are
available (via Handler), in addition to the Cmdline, Profile, Symbol,
and Trace profiles defined in this package. If you are not using
DefaultServeMux, you will have to register handlers with the mux you are
using.

Signed-off-by: j4ckstraw <j4ckstraw@foxmail.com>
2023-10-08 10:49:24 +08:00
Fan Shang Xiang
d04bb3a5b0 add retry for patch node requests and replace deprecated poll function 2023-09-21 07:36:42 +00:00
Manuel Rüger
e43459d86d Move glog/klog logging to klog/v2 2023-09-17 08:57:33 +03:00
Fan Shang Xiang
adbe770d74 replace k8s.io/apimachinery/pkg/util/clock with k8s.io/utils/clock 2023-08-31 06:27:32 +00:00
Fan Shang Xiang
471ab88240 add context to long running operations 2023-07-13 10:01:18 +08:00
Kubernetes Prow Robot
e6fbdd434a Merge pull request #760 from MartinForReal/master
bump k8s.io dependencies to 1.17.2
2023-06-25 21:41:16 -07:00
guoguangwu
6dc23ca804 chore: remove refs to deprecated io/ioutil 2023-06-21 12:12:27 +08:00
Fan Shang Xiang
b5e4ef628b bump k8s.io to 1.17.2 2023-06-12 22:27:39 +08:00
MartinForReal
75095b2573 remove heapster from project dependencies 2023-05-18 01:38:29 +00:00
pezzak
ed97725ea1 Log error from kube-api 2021-06-17 12:51:44 +03:00
Jeremy Edwards
4181ece888 Windows Support: Fix Build Regressions, Tests Pass 2021-03-14 10:24:45 -07:00
Andrew DeMaria
7fd465e195 Add namespace option for events 2020-03-05 19:04:31 -07:00
yuzhiquan
9c24be2da4 cleanup: using time.Since(t) instead of t.Sub(time.Now()) 2019-12-05 18:57:53 +08:00
Matt Matejczyk
2e9da8569d Make heartbeatPeriod const into a flag. 2019-09-26 09:59:03 +02:00
Xuewei Zhang
e1939ebc03 Handle vendor change in k8s.io/apimachinery/pkg/util/clock
clock.Clock used to have Tick() method, but is now replaced with
NewTicker() method to prevent leaking. Changed NPD code to adapt to it.

See https://github.com/kubernetes/apimachinery/commit/10ebc22e for more
detail.
2019-09-14 15:22:09 -07:00
Lang Chi
4d37d6fb68 fix a spelling error
Signed-off-by: Lang Chi <21860405@zju.edu.cn>
2019-08-13 15:12:01 +08:00
Yang Guo
ddb1d76178 Support waiting for kube-apiserver to be ready with timout during NPD startup 2019-07-09 10:24:25 -07:00
Xuewei Zhang
5814195ad5 Move apiserver-reporting logic into k8s_exporter.
Added CLI option "enable-k8s-exporter" (default to true). Users can use
this option to enable/disable exporting to Kubernetes control plane.

This commit also removes all the apiserver-specific logic from package
problemdetector.

Future exporters (e.g. to local journald, Prometheus, other control
planes) should implement types.Exporter interface.
2019-06-12 18:29:18 -07:00