Skip to content

feat(helm): structure-preserving wrapper with segment-based CRD routing #1239

Closed

Description

@lex00

Part of #1228 — Phase 3.

Blocked by: Phase 2 render artifact

What

The deployable artifact is a small tree, not a flat manifest stream. Documents route by
their # Source: origin: any path containing a crds/ segment goes to the wrapper's
crds/, everything else to templates/.

Segment matching, not prefix matching — a subchart's CRDs arrive as
<parent>/charts/<child>/crds/<file>.

The wrapper inherits the source chart's name and version (see epic Decisions), keeping
helm history continuous across migration.

Acceptance

  • Routing uses (^|/)crds/, not a prefix match
  • Pinned release helm uninstall leaves CRDs standing, matching unpinned semantics
  • Test covers CRDs at both parent and subchart level
  • Wrapper inherits source chart name and version

Context

Verified A/B on one cluster: structure-preserving wrapper -> uninstall -> CRD survived;
flat wrapper -> uninstall -> CRD deleted. A flat wrap silently converts helm uninstall
from safe to data-destroying for any chart with CRDs (epic findings 4, 10).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:helmenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions