739 Commits

Author SHA1 Message Date
Agam Dua d6de569420 Update default kernel to Kata Containers 3.32.0 debug build (#2143)
- Switch the default guest kernel from vmlinux-6.18.15-186
  (kata-static-3.28.0) to the newer version and variant
  vmlinux-6.18.35-197-debug (kata-static-3.32.0).
- The debug variant enables eBPF, kprobes, uprobes, ftrace
  and BTF (kata-containers/kata-containers#12567).

Signed-off-by: Agam Dua <agam_dua@apple.com>
2026-08-20 15:41:02 -07:00
Raj 04324afe63 Add identifier validation tests for the disk-usage routes (#2136) 2026-08-20 10:31:01 -07:00
Noah Thornton 434fda5332 Remove AsyncParsableCommand conformance from ContainerCLI (#2140)
This removes the AsyncParsableCommand protocol from ContainerCLI since
it does not leverage the features that the protocol provides and the
extension main can cause confusion.

Bump to latest containerization version.
2026-08-19 10:28:19 -07:00
Kathryn Baldauf 44374a237b Do not set default maskedPaths and readonlyPaths for container machines (#2137)
Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
2026-08-19 09:44:25 -07:00
jshi991 b3357fdb2e Split K8sHelper, add WorkerProvisioner protocol, and add LinuxWorker … (#2110)
- Closes #2102.
- LinuxWorkerProvisioner sets up a kind-based node.
- Includes some test cleanups.

Co-authored-by: John Logan <john_logan@apple.com>
2026-08-18 13:12:06 -07:00
Dmitry Kovba 7d4ffb6cb1 Fix a compilation error (#2119) 2026-08-13 20:03:09 -07:00
J Logan 5fcbeab570 Extracts createPluginLoader() for use by container k8s. (#2115) 2026-08-12 21:00:44 -07:00
J Logan d2213f49e6 Integration test: fix k8s test with scoped domain. (#2104) 2026-08-12 09:39:13 -07:00
Eric Ernst 875d80ba07 Topic/docs refactor (#2032)
Signed-off-by: Eric Ernst <eric_ernst@apple.com>
2026-08-11 09:34:53 -07:00
Kathryn Baldauf ff5aa8a03b Validate volume name in volume disk usage call (#2107)
Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
2026-08-10 13:42:16 -07:00
J Logan 497465635a Remove auto registry scheme. (#2100) 2026-08-10 09:55:53 -07:00
Pradeep Biswas f13b7238d5 Refactor tmpfsMounts() to process tmpfs path correctly (#2103)
Co-authored-by: John Logan <john_logan@apple.com>
2026-08-10 09:49:58 -07:00
Thomas Danielsson af405ffd5a Update sudoers file to not include dots (#2080)
- Closes #1713.
- Files under /etc/sudoers.d/ must not contain dots as these
  will be ignored as "backup-files". When writing the sudoers
  file, replace `.` with `_` in the username to form the filename.
2026-08-07 18:36:01 -07:00
Victor Manuel Puga Ruiz 0190097d06 Migrate ProgressBarTests to Swift Testing (#2085)
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
1.2.2
2026-08-07 15:17:54 -07:00
J Logan 0925ff6298 Refactor container k8s to use plugin resource management. (#2097) 2026-08-07 14:43:56 -07:00
jshi991 cec124f207 refactor: extract K8s logic into ContainerK8s library target (#2079)
- Closes #2078.
- Move all K8s sources from the container-k8s executable
  into a new ContainerK8s library target. Sources/Plugins/K8s/
  becomes a thin entry point (K8sMain.swift) that calls
  K8sCommand.main().
2026-08-07 10:08:16 -07:00
J Logan abff4183b4 Integration test: fix username/uid flake. (#2086) 2026-08-06 20:31:13 -07:00
jshi991 0d111be4c6 K8s plugin (#2044)
- closes #2043 
- introduces the k8s plugin, allowing users to make single
  node clusters with the kind base image 
- other functionality is included as well such as creation,
  deletion, and loading custom images
1.2.1
2026-08-05 19:25:27 -07:00
J Logan 60612eef51 Integration test: cache warmup image tarfiles. (#2074)
- When pulling warmup images for concurrent tests, save
  the images to a cache directory under the application root.
- Serial tests that aren't testing pull can save time by restoring
  a cached warmup image.
2026-08-05 11:17:20 -07:00
J Logan bc50fcb593 Simplify correlation of test prefix to test ID. (#2071) 2026-08-05 09:32:02 -07:00
Aditya Ramani ddaf2ca5ac Add --read-only-path and --masked-path option to container run / create (#2069) 2026-08-04 19:04:50 -07:00
J Logan cee0ba80cd Log core counts in CI for perf analysis. (#2070) 2026-08-04 18:48:12 -07:00
J Logan cb8cad4562 Add readiness signal to DirectoryWatcher, fix DirectoryWatcherTest. (#2066) 2026-08-04 12:17:58 -07:00
J Logan 520371cb38 Increase testExecDetachProcessRunning sleep margin to avoid CI flake (#2063) 2026-08-03 15:27:58 -07:00
jwhur 4ed47cbe33 Move SSH builder test to Serialized tests (#2061) 2026-08-03 12:16:23 -07:00
Saehej Kang e87d3a030b [builder]: enable ssh forwarding for container build (#1508) 2026-08-03 08:34:48 -07:00
Saehej Kang 39f12cabed [package]: bump container-builder-shim to 0.13.1 (#2056) 2026-08-02 17:35:08 -07:00
adityabagchi24 a58c5fe66c Adjust overcommit and max_map_count vm defaults in guest VMs (#2055)
Each container runs in its own guest VM sized to
`--memory` with no swap, so the guest kernel's
stock `vm` sysctl defaults are hit far too easily:

- `vm.overcommit_memory=0` (heuristic overcommit)
  rejects an oversized `mmap()` upfront whenever the
  reservation exceeds the small, swap-less VM's free
  RAM — even if the memory is never touched —
  returning `ENOMEM`.
- `vm.max_map_count=65530` caps per-process
  mapping count, which mapping-heavy applications
  (e.g. Elasticsearch, many JVMs) can exceed.
2026-08-02 15:33:52 -07:00
Saehej Kang da8bec6223 [container]: add container export for live containers (#1630)
- When container is not running, the runtime helper
  traverses the container's root fs and writes it to the
  specified tar archive or stdout.
- When the container is running, the helper performs
  the same operation but wraps it in freeze/thaw
  to ensure data integrity for the resulting archive.
2026-08-02 14:55:01 -07:00
Kathryn Baldauf 6e65319fe4 Update containerization import to 0.40.1 (#2038)
Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
1.2.0
2026-07-28 14:53:23 -07:00
Kathryn Baldauf 48145ac7fb Fix image env vars, build context checks, TCP/UDP port forward buffer, and validate plugin name (#2027)
Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
Co-authored-by: John Logan <john_logan@apple.com>
Co-authored-by: Raj Aryan Singh <rajaryan_singh@apple.com>
2026-07-28 10:13:10 -07:00
Kathryn Baldauf 27e5043165 Update containerization import to latest 0.40.0 (#2028)
container project - merge build / Invoke build (push) Failing after 1s
Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
2026-07-27 15:18:53 -07:00
divyansh 13e976f88e fix: Increase XPC timeout for Machine API operations (#2006)
- Fixes #2003.
2026-07-27 13:49:18 -07:00
Ari Rubinstein b229cecb53 Allow custom kernel boot args via --kernel-arg (#1744)
Signed-off-by: Ari Rubinstein <22369+arirubinstein@users.noreply.github.com>
Co-authored-by: Ari Rubinstein <22369+arirubinstein@users.noreply.github.com>
2026-07-27 13:44:51 -04:00
J Logan d1d763530d Fix BuilderStart race, parallelize container build tests. (#2002)
container project - merge build / Invoke build (push) Failing after 1s
- Closes #2001.
- Handle "container exists" error gracefully instead
  of failing, when trying to start the buildkit container.
- Move build tests to parallel suites, while the builder
  lifecycle tests remain serial. Parallel builds don't
  use the fixture lock that deletes and restarts the
  builder and runs a build block in isolation.
2026-07-23 15:50:59 -07:00
adityabagchi24 78e2cb4417 Use log instead of print for system start status messages (#1889)
container project - merge build / Invoke build (push) Failing after 0s
2026-07-22 21:40:43 -07:00
J Logan 9af6e0e5e5 Integration test - miscellaneous fixture and test refinements. (#1993) 2026-07-22 17:19:14 -07:00
J Logan 72431b0458 Add OCI maskedPaths and readonlyPaths support to Container API. (#1996) 2026-07-22 16:28:26 -07:00
Kathryn Baldauf 9be73ed6bd Add missing dependencies to new ContainerTestSupport package (#1994)
Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
2026-07-22 16:01:09 -07:00
J Logan f0b2b96a26 Use enum for warmup images. (#1990)
- Closes #1982.
- Makes warmup image code more readable in tests.
2026-07-22 09:45:33 -07:00
J Logan 968dbe49c1 Downgrade swift-collections to 1.5.1. (#1984) 2026-07-22 08:21:50 -07:00
Kathryn Baldauf a51d54b553 Container test fixture package (#1887)
Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
2026-07-21 18:15:47 -07:00
Kathryn Baldauf f4757afa43 Pass build config in when building protoc dependencies (#1972)
- The protobuf makefile relies on being able to find
  the built protoc dependencies under the build
  directory. Since we were not passing the build
  configuration to the swift command to build those
  dependencies, the built binaries were going into
  the debug build folder. If make protos was run
  when `BUILD_CONFIGURATION=release`, then
  we'd fail to find the dependencies since the build
  folder should now be the release build folder.
  This PR fixes that.

Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
2026-07-21 17:48:11 -07:00
dependabot[bot] 0c0d3c6ff1 ci: bump the github-actions group across 1 directory with 3 updates (#1983)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-21 17:46:37 -07:00
Kathryn Baldauf ec448129da Reword DNS container name resolution doc information (#1960)
Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
2026-07-21 17:43:02 -07:00
J Logan b130babb15 Use ordered journal mode for unpacked images. (#1974) 2026-07-21 17:12:01 -07:00
J Logan a6813ed66f Periodic dependency updates. (#1981) 2026-07-21 16:42:33 -07:00
Kathryn Baldauf 06127de1cd Update containerization dependency with new EXT4Unpacker func definition (#1973)
Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
2026-07-21 13:52:31 -07:00
Saehej Kang 90be1878d8 [gitignore]: ignore vscode workspace files (#1966) 2026-07-21 11:23:08 -07:00
J Logan 1e6f78255e Address flaky TestCLIKernelSetSerial suite. (#1976) 2026-07-21 10:40:49 -07:00