mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-07-01 22:50:54 +00:00
Introduce helper functions used by later commits to make containerd configuration schema-aware. _containerd_blob_schema_version(): Parse the version = <n> line from a containerd config blob and echo the integer. _containerd_resolved_schema_version(): Run "containerd config default" and return the schema version of the active binary. Drives conditional logic in overwrite_containerd_config and other helpers. containerd_emit_rootful_api_socket_overrides(): Emit the TOML fragment that fixes uid/gid on the grpc/ttrpc sockets. Schema v3 uses top-level [grpc]/[ttrpc]; schema v4+ uses plugin-scoped tables. require_containerd_config_schema_v3_plus() / require_containerd_binary_default_schema_v3_plus(): Guard helpers that abort with a clear message when the installed containerd is older than v2.x. Used only in test paths that explicitly build containerd 2.x from source. containerd_render_config_default_with_imports(): Write a fresh "containerd config default" to a file and ensure the conf.d import glob is present, ready for drop-in fragments. export_go_toolchain_for_containerd_source_builds(): Set GOTOOLCHAIN=auto so "go build" of containerd 2.x downloads the exact toolchain in its go.mod without changing the global Go version. Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com> Assisted-by: Cursor <noreply@cursor.com>
Kata Containers Tests
This directory contains various types of tests for testing the Kata Containers repository.
Test Content
We provide several tests to ensure Kata-Containers run on different scenarios and with different container managers.
- Integration tests to ensure compatibility with:
- Stability tests
- Functional
GitHub Actions
Kata Containers uses GitHub Actions in the Kata Containers repository.