Files
cozystack/hack
Myasnikov Daniil 2796819702 fix(e2e): pre-create cozy-system as helm-adoptable namespace
The cozy-installer chart declares Namespace cozy-system itself, which
makes helm cold-install paradoxical:
  - WITH --create-namespace: helm pre-creates the ns without helm
    annotations; the chart's own Namespace apply then fails with
    'already exists'.
  - WITHOUT --create-namespace: helm fails before any apply because it
    can't write its release-secret to a non-existent ns.

The 3x retry was masking both directions — second attempt saw a partial
release and took the upgrade path, which patch-merges instead of
strict-create. Reproducible on every cold install across PRs.

Pre-create cozy-system with meta.helm.sh/release-name and
app.kubernetes.io/managed-by=Helm so helm adopts it cleanly during
install. Labels mirror the chart's template (PSA enforce=privileged etc.)
so behaviour matches what the chart would have done.

Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
2026-04-28 11:08:17 +05:00
..
2026-02-17 22:54:12 +01:00