-
Notifications
You must be signed in to change notification settings - Fork 68
feat(bundler): bake repoURL default into values.yaml at bundle push t… #1562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
4ab188a
c3954f6
e139369
58cb808
4c6f48c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -167,6 +167,12 @@ type Generator struct { | |
| // is the multi-bundle collision fix — see issue #1011. | ||
| AppName string | ||
|
|
||
| // OCIParentNamespace is the OCI registry + repository path with the | ||
| // chart-name segment stripped. When set, written as the default repoURL | ||
| // in the bundle's root values.yaml so deploying from the push-target | ||
| // registry requires no --set flags. Empty for local-directory output. See #1342. | ||
| OCIParentNamespace string | ||
|
|
||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| // DynamicValues maps component names to their dynamic value paths. | ||
| DynamicValues map[string][]string | ||
|
|
||
|
|
@@ -297,11 +303,12 @@ func (g *Generator) Generate(ctx context.Context, outputDir string) (*deployer.O | |
| dynamicOnlyValues[rootValuesAppNameKey] = g.AppName | ||
| } | ||
|
|
||
| // Surface repoURL and targetRevision in values.yaml so `helm show | ||
| // values` documents the install-time inputs. Empty defaults — the | ||
| // parent App template's {{ required }} directive still enforces | ||
| // non-empty at render time. See issue #1020. | ||
| dynamicOnlyValues[rootValuesRepoURLKey] = "" | ||
| // Bake the OCI parent namespace as the repoURL default when the bundle was | ||
| // pushed to a registry — `helm show values` and a plain `helm install` both | ||
| // work without --set flags. For local output, OCIParentNamespace is "" and | ||
| // the {{ required }} safety-net is unchanged. See #1342. | ||
| repoURLDefault := g.OCIParentNamespace | ||
| dynamicOnlyValues[rootValuesRepoURLKey] = repoURLDefault | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔴 Blocker — Golden tests fail: the targetRevision default was silently dropped This block replaced two lines with one — it kept the repoURL write but deleted Blast radius: Reproduced: Fix: Restore the line rather than regenerate goldens. Dropping targetRevision looks unintentional and regresses the explicit intent of #1020 ("surface both keys so |
||
| dynamicOnlyValues[rootValuesTargetRevisionKey] = "" | ||
|
|
||
| valuesPath, valuesSize, err := writeRootValuesFile(dynamicOnlyValues, outputDir) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.