kubernetes/third_party/forked
Davanum Srinivas 0e1f1daae1
kubelet: read OOM events in-tree and drop the cadvisor oomparser dependency
The kubelet used cadvisor's lib/utils/oomparser to watch the kernel log for
OOM kills and to produce the container_oom_events_total metric. That made the
kubelet depend on the cadvisor lib module for OOM handling.

This moves OOM handling in-tree:

- The OOM kill parser is forked from cadvisor into
  third_party/forked/cadvisor/oomparser. It reads /dev/kmsg and extracts OOM
  events, adapted to take a context.Context and log through klog.
- The kmsg reader is forked from github.com/euank/go-kmsg-parser into
  third_party/forked/go-kmsg-parser/kmsgparser.
- The kubelet OOM watcher reads OOM events through the forked parser and
  records the container_oom_events_total metric in-tree.
- cadvisor/lib is bumped to v0.60.3, which no longer ships the OOM parser.
  This removes the transitive github.com/euank/go-kmsg-parser
  v2.0.0+incompatible dependency and the vendored cadvisor lib/utils/oomparser
  package.

Behavior is unchanged. OOM events are still emitted and the metric still
reports the same counts.
2026-06-26 20:35:19 -04:00
..
cadvisor kubelet: read OOM events in-tree and drop the cadvisor oomparser dependency 2026-06-26 20:35:19 -04:00
go-kmsg-parser kubelet: read OOM events in-tree and drop the cadvisor oomparser dependency 2026-06-26 20:35:19 -04:00
golang fix(expansion):Resolve the issue of UTF-8 characters being truncated, resulting in invalid UTF-8 2026-01-20 13:53:37 +08:00
gonum/graph hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
gotestsum prune-junit-xml: simplify failure message 2024-10-13 09:37:50 +02:00
libcontainer build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
shell2junit Revert "tests: include stdout of failed commands in JUnit" 2025-01-22 23:36:50 +01:00
vishhstress agnhost: merge registry.k8s.io/stress:v1 (github.com/vishh/stress) 2024-02-13 23:21:05 +09:00