Skip to content

chart: with the default namespace.create=true, no plain helm command can first-install into the release namespace #1403

Closed

Description

@bpalermo

With the chart default namespace.create=true and the release stored in the namespace the chart creates (-n aether-system), a first install fails whichever way it is spelled:

Command Result
helm upgrade --install … -n aether-system --create-namespace namespaces "aether-system" already exists; release left failed, namespace without pod-security labels
the same without --create-namespace create: failed to create: namespaces "aether-system" not found (Helm stores the release record in the namespace before creating anything)
namespace created first with plain kubectl create namespace exists and cannot be imported into the current release: invalid ownership metadata

What works: pre-creating the namespace with Helm's ownership label and annotations (three kubectl commands), or --create-namespace --set namespace.create=false (the namespace then has no pod-security labels and they must be applied by hand), or storing the release in another namespace.

talos-main and every e2e script run namespace.create=false, which is why this was never seen.

Decision needed: default namespace.create to false and document creating and labelling the namespace (what we actually run); or keep the default and document the adoption pre-step; or have the chart apply the pod-security labels some other way.

Reported by the install-docs work for #1384 (draft PR #1398), not changed there. Measured on kind v0.33.0, Helm 3.18.4, chart 2.4.16.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugchart

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions