Commit Graph

16067 Commits

Author SHA1 Message Date
Maksym Pavlenko
1be58315b6 Merge pull request #12768 from klihub/devel/main/nri-input/seccomp-policy
cri,nri: pass seccomp policy to plugins.
2026-01-12 16:38:19 +00:00
Krisztian Litkey
cfec4b30a7 cri,nri: pass seccomp policy to plugins.
Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
2026-01-12 09:59:58 -06:00
Derek McGowan
eb888dce45 Merge pull request #12765 from klihub/devel/main/nri-input/rlimits
cri,nri: pass any POSIX rlimits to plugins.
2026-01-12 15:02:52 +00:00
Fu Wei
cdc56ea306 Merge pull request #12758 from ningmingxiao/check_point_1
cri: fix checkpoint failed with short id
2026-01-12 14:22:12 +00:00
Krisztian Litkey
7b85525cfe cri,nri: pass any POSIX rlimits to plugins.
Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
2026-01-11 18:16:50 +02:00
Maksym Pavlenko
1bc4ec54bd Merge pull request #12770 from klihub/devel/main/nri-input/container-extra-status
cri,nri: pass extended container status to NRI.
2026-01-10 16:09:10 +00:00
Krisztian Litkey
695c91324a cri,nri: pass extended container status to NRI.
Pass more complete container status information to NRI, including
exit code, and timestamps for container creation, start, and exit
events.

Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
2026-01-10 10:50:07 +02:00
Maksym Pavlenko
3bcdbd8a49 Merge pull request #12771 from estesp/buf-followup
Remove protoc dependency from BUILDING.md
2026-01-10 00:56:06 +00:00
Maksym Pavlenko
04366a910a Merge pull request #12767 from klihub/devel/main/nri-input/cdi-devices
cri,nri: pass injected CDI devices to plugins.
2026-01-09 23:30:48 +00:00
Derek McGowan
8e2aa0b9e8 Merge pull request #12766 from klihub/devel/main/nri-input/sysctl
cri,nri: pass linux sysctl to plugins.
2026-01-09 22:44:41 +00:00
Phil Estes
19f39fee6f Remove protoc dependency from BUILDING.md
This line was missed in the PR to switch to `buf`

Signed-off-by: Phil Estes <estesp@amazon.com>
2026-01-09 16:34:39 -05:00
Krisztian Litkey
98a2e88767 cri,nri: pass injected CDI devices to plugins.
Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
2026-01-09 15:19:32 -06:00
Fu Wei
a49ed606a4 Merge pull request #12762 from mxpv/proto
Migrate from protobuild to buf
2026-01-09 19:41:38 +00:00
ningmingxiao
0dc9582295 cri: fix checkpoint failed with short id
Signed-off-by: ningmingxiao <ning.mingxiao@zte.com.cn>
2026-01-09 10:47:37 -06:00
Krisztian Litkey
250388dcd9 cri,nri: pass linux sysctl to plugins.
Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
2026-01-09 14:37:52 +02:00
Akihiro Suda
9d247a7993 Merge pull request #12433 from halaney/ahalaney/erofs-idmap-latest
Add erofs idmap support
2026-01-09 06:35:49 +00:00
Fu Wei
f1c9951921 Merge pull request #12737 from Cindia-blue/tracing-followups
Tracing: add spans in task/metadata and sandbox paths
2026-01-09 01:30:18 +00:00
Maksym Pavlenko
f87550d068 Install buf from install-dev-tools
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2026-01-08 17:03:28 -08:00
Maksym Pavlenko
dac9721faf Drop outdated pb.txt files
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2026-01-08 16:51:57 -08:00
Maksym Pavlenko
6a6283193b Update pb files
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2026-01-08 16:47:41 -08:00
Maksym Pavlenko
57782b7175 Move buf configuration under api/
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2026-01-08 16:46:18 -08:00
Maksym Pavlenko
248ee80fab Remove GOPATH workaround from Makefile
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2026-01-08 16:42:26 -08:00
Maksym Pavlenko
39991b6617 Use relative import intead of GOPATH style imports
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2026-01-08 16:41:46 -08:00
Cindia-blue
fb295b9d4f Tracing: add spans in task/metadata and sandbox paths
This PR adds opt-in tracing spans/attributes in CRI image pull and selected sandbox-related paths to improve debugging and correlation (e.g., sandbox.id/pod metadata). If maintainers prefer a smaller diff, I’m happy to split this into a pull-only PR plus follow-ups.
• follow-up after pull-only PR
• focuses on task/metadata/sandbox/cni setup spans

Signed-off-by: Cindy Li <cindyli@pinterest.com>
2026-01-09 00:05:37 +00:00
Maksym Pavlenko
edb3e08697 Remove protobuf
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2026-01-08 15:40:54 -08:00
Maksym Pavlenko
aca62ae10d Install buf on demand via go install
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2026-01-08 15:23:01 -08:00
Maksym Pavlenko
eb586b5ef2 Regenerate proto files
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2026-01-08 15:13:02 -08:00
Maksym Pavlenko
e63f1d3ab4 Use buf to generate proto code
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2026-01-08 15:12:50 -08:00
Maksym Pavlenko
2bf3fcf007 Merge pull request #11406 from chrishenzie/update-pod-sandbox-api
UpdatePodSandboxResources CRI API handler
2026-01-08 17:06:37 +00:00
Chris Henzie
de5b622bd9 Persist pod sandbox resource updates
Introduces changes to make pod sandbox updates persistent across
restarts.

This is achieved by:
- Storing the updated Overhead and Resources as an extension on the core
  sandbox object and in the in-memory sandbox status store.
- Modifying the sandbox recovery logic to read this extension on startup
  (this is not working in recovery unit tests yet and needs fixing).
- Updating the PodSandboxStatus CRI handler to include updated resources
  from the sandbox status store.

Signed-off-by: Chris Henzie <chrishenzie@google.com>
2026-01-07 09:44:46 -08:00
Chris Henzie
ffd3691c92 Implement UpdatePodSandboxResources CRI API handler
Signed-off-by: Chris Henzie <chrishenzie@google.com>
2026-01-07 09:44:46 -08:00
Fu Wei
a800acbac8 Merge pull request #12714 from fuweid/fix-oom-issue
*: update OOMKilled event handling
2026-01-07 14:04:45 +00:00
Wei Fu
016f4a6360 *: move new oom package into internal
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2026-01-06 20:44:04 -05:00
Wei Fu
bdff34ef61 *: skip critest OOMKilled testcase for systemd cgroup
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2026-01-06 20:44:04 -05:00
Wei Fu
cbb1b13a81 cri-integration: add stress test for TestOOMEventMonitor
The test was validated locally by running 100 pods for 100 rounds without
observing any failures. Due to limited resources in the CI environment,
the test parameters were reduced to 8 pods and 10 rounds.

```bash
FOCUS=TestOOMEventMonitor CGROUP_DRIVER=cgroupfs taskset -c 0,1 make cri-integration | tee /tmp/log
```

Signed-off-by: Wei Fu <fuweid89@gmail.com>
2026-01-06 20:44:04 -05:00
Wei Fu
aa3c507925 internal/cri/server: check if OOM event occurred before update status
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2026-01-06 20:44:04 -05:00
Wei Fu
8ac7e3c06d cmd/containerd-shim-runc-v2: use experimental OOM package
We should always send oom event before exit event.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
2026-01-06 20:44:04 -05:00
Wei Fu
21707e6c3b cmd/containerd-shim-runc-v2: add experimental OOM package
The OOM handling code is intended to live under pkg/oom/v2. However, the
cgroupv2 package still needs further refinement, such as exporting the
cgroup path and allowing callers to query specific stats instead of
returning all of them.

Until that work is complete, introduce the OOM package as experimental
and place it under containerd-shim-runc-v2.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
2026-01-06 20:44:04 -05:00
Maksym Pavlenko
1e3446f24b Merge pull request #12666 from aadhar-agarwal/aadagarwal/fix-st1005
Fix ST1005 lint violations: lowercase error strings
2026-01-07 01:06:39 +00:00
Fu Wei
4dd1489b4f Merge pull request #12746 from mxpv/tests
Simplify/Cleanup unit tests
2026-01-07 00:53:27 +00:00
Maksym Pavlenko
4d47b9a8c8 Merge pull request #12749 from akhilerm/1.35-support-matrix
doc: add k8s 1.35 to support matrix
2026-01-07 00:52:30 +00:00
Aadhar Agarwal
d6ee6f69b2 Fix ST1005 lint violations: lowercase error strings
Error strings should not be capitalized (unless beginning with proper
nouns or acronyms) or end with punctuation, per Go style guide and
staticcheck ST1005.

This change lowercases the first letter of error messages in fmt.Errorf
calls throughout the codebase, while preserving uppercase for acronyms
at the start of error strings (e.g., NRI, RDT, CDI, UID, GID, VHD, FUSE).

Also fixes typo 'faild' -> 'failed' in resolver_test.go.

Changes:
- core/metadata: target.Digest, target.Size, target.MediaType
- core/remotes/docker: fetcher.Seek, fetcherByDigest
- integration: various test error messages
- internal/cri/server: containerConfig
- plugins/snapshots: erofs

Fixes #12011

Signed-off-by: Aadhar Agarwal <aadagarwal@microsoft.com>
2026-01-07 00:26:28 +00:00
Maksym Pavlenko
253fbe756a Cleanup unit tests
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2026-01-06 10:52:49 -08:00
Akhil Mohan
b5ee44fe8e add k8s 1.35 to support matrix
- add k8s 1.35 into support matrix
- remove k8s 1.31 as its EOL in Nov 2025
- 2.0 is removed from the supported list as it was EOL when 1.35
released

Co-authored-by: Mike Brown <brownwm@us.ibm.com>
Signed-off-by: Akhil Mohan <akhilerm@gmail.com>
2026-01-06 11:00:08 -06:00
Derek McGowan
415b5a534a Merge pull request #12567 from ChengyuZhu6/erofs-mediatype
images: add EROFS layer media type
2026-01-06 06:28:28 +00:00
Kazuyoshi Kato
7d1514ab17 Merge pull request #12709 from singholt/cni-load-fix
cri: update log level to warn for CNI load failure during CRI init
2026-01-06 04:20:49 +00:00
Anuj Singh
b66f92f591 cri: update log level to warn for CNI load failure during init
Signed-off-by: Anuj Singh <singholt@amazon.com>
2026-01-05 17:40:00 -06:00
Maksym Pavlenko
7b632915c1 Merge pull request #12702 from wadey/simplify-client-mount-label
simplify selinux dependency in client
2026-01-05 22:39:43 +00:00
Maksym Pavlenko
2bddff3f21 Merge pull request #12566 from rawahars/main
Set annotations parameter in CreateSandbox request
2026-01-05 18:45:37 +00:00
Andrew Halaney
9b50650d5c snapshots/erofs: Support idmap mounts
This disables the slow_chown feature (nobody in their right mind
is going to be choosing erofs and want to slowly chown each file),
indicates that we support idmaps if the kernel supports it, and makes
sure to chown the upperdir.

This is more or less exactly how the overlay snapshotter does things,
minus the slow_chown part (which has discussions about dropping
altogether at some point anyways).

Signed-off-by: Andrew Halaney <ahalaney@netflix.com>
2026-01-02 10:05:29 -06:00