Files
cozystack/packages/apps
Aleksei Sviridkin 92000f1618 fix(kubernetes): add config_path patch for containerd 2.x (#2723)
What this PR does
This PR adds support for containerd 2.x CRI config_path configuration,
as the CRI plugin section was renamed from io.containerd.grpc.v1.cri to
io.containerd.cri.v1.images.

It also makes the sed patching regexes more resilient by matching any
quotes (single or double) around the plugin names, which fixes the issue
on Ubuntu 24.04 (Noble) where containerd 2.x uses single quotes:
[plugins.'io.containerd.cri.v1.images'.registry].

Release note
fix(kubernetes): add config_path patch for containerd 2.x

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Chores**
* Broadened Kubernetes cluster bootstrap handling to better support
different containerd plugin layouts, improving compatibility when
configuring container registry paths during cluster initialization.
* **Tests**
* Added regression tests and fixtures to validate the containerd
configuration patching logic and integrated the check into the
Kubernetes test target.

<!-- review_stack_entry_start -->

[![Review Change
Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/cozystack/cozystack/pull/2723?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack)

<!-- review_stack_entry_end -->
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-05-26 11:04:39 +03:00
..
2026-03-25 15:59:22 +05:00
2025-08-07 14:07:05 +03:00

How to test packages local

cd packages/core/installer
make image-cozystack REGISTRY=YOUR_CUSTOM_REGISTRY
make apply
kubectl delete po -l app=source-controller -n cozy-fluxcd