Files
cozystack/packages/apps
Aleksei Sviridkin cac514b60f fix(kubernetes): fail fast when tenant has no etcd DataStore
When a Kubernetes tenant is created without a parent tenant that has
etcd enabled, .Values._namespace.etcd is empty and the rendered
KamajiControlPlane spec carries an empty dataStoreName. The Kamaji
admission webhook then rejects every TenantControlPlane create with
"tenant-root DataStore does not exist" and the control plane never
comes up.

Add a helm template-level guard that fails rendering with a
descriptive, actionable error message before the HelmRelease even
reaches the webhook. This also closes the narrow race where a
Kubernetes HelmRelease reconciles before the etcd HelmRelease has
created the DataStore CR - flux retries on its interval and picks up
the DataStore once it appears.

Assisted-By: Claude <noreply@anthropic.com>
Signed-off-by: Aleksei Sviridkin <f@lex.la>
2026-04-16 20:26:09 +03:00
..
2026-03-25 15:57:25 +05:00
2026-03-25 15:57:25 +05:00
2026-03-25 15:57:25 +05:00
2026-03-25 15:57:25 +05:00
2026-04-16 08:50:30 +00:00
2026-03-25 15:57:25 +05:00
2026-03-25 15:57:25 +05:00
2026-03-25 15:57:25 +05:00
2026-03-25 15:57:25 +05:00
2026-03-25 15:57:25 +05:00
2026-03-25 15:57:25 +05:00
2026-03-25 15:57:25 +05:00
2026-03-25 15:57:25 +05:00
2026-03-25 15:59:22 +05:00
2026-03-25 15:57:25 +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