fix(bundler): correct helmfile bundle README for stratified layout#959
Conversation
The README template baked into every multi-level helmfile bundle still described the pre-DAG-stratification layout (`crds.yaml` first, then `releases.yaml`) — files the bundler hasn't emitted since #926. Operators reading the generated README hunt for files that don't exist. Rewrite the conditional block to describe the actual stratified layout (one `level-N.yaml` per dependency level, processed sequentially), and rename `readmeData.HasCRDLayer` → `HasSubHelmfiles` plus the local `splitLayout` → `stratified` so the field name matches what it now gates on (DAG produced >1 level, not "bundle includes CRD-owning charts"). Regenerate the affected golden. Fixes #927
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Enterprise Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThis PR updates the Helmfile bundler to rename and clarify the concept of multi-level helmfile bundles throughout the codebase. The Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Coverage Report ✅
Coverage BadgeCoverage unchanged by this PR. |
Summary
The README baked into every multi-level helmfile bundle still described the pre-DAG-stratification layout (
crds.yaml+releases.yaml) — files the bundler hasn't emitted since #926. Rewrite the conditional README block and rename the now-misnamedHasCRDLayerfield.Motivation / Context
Operators reading the auto-generated README in their bundle would hunt for
crds.yaml/releases.yamlthat don't exist; the actual sub-helmfiles arelevel-0.yaml…level-N.yaml. The deployment itself works (helmfile.yaml is correct), but the docs mislead. The opening framing ("For bundles that include CRD-owning charts…") is also no longer accurate — the gate is now "DAG produced >1 level", which any recipe with two unrelated components linked by adependencyRefwould also trigger.Fixes: #927
Related: #926, #914
Type of Change
Component(s) Affected
pkg/bundler,pkg/component/*)Implementation Notes
{{ if .HasCRDLayer }}block intemplates/README.md.tmplto describe the stratified layout (one sub-helmfile per dependency level,level-0.yamlfirst, processed sequentially).readmeData.HasCRDLayer→HasSubHelmfilesand the localsplitLayout→stratifiedso the name matches what it now gates on.pkg/bundler/deployer/helmfile/testdata/upstream_helm_only/README.mdviago test -update.Testing
Coverage delta (
pkg/bundler/deployer/helmfile): no test code added/changed; the rename is exercised by the existing golden suite which still passes.Risk Assessment
Rollout notes: N/A — pure docs/identifier fix.
Checklist
make testwith-race) — package-scoped runmake lint) — package-scoped rungit commit -S)