feat(bundler): add --dynamic flag for install-time values (#515)#527
feat(bundler): add --dynamic flag for install-time values (#515)#527
Conversation
5ee91f3 to
82695d6
Compare
Coverage Report ✅
Coverage BadgeMerging this branch changes the coverage (3 decrease, 3 increase)
Coverage by fileChanged files (no unit tests)
Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code. |
3b1bb60 to
00c4cc0
Compare
mchmarny
left a comment
There was a problem hiding this comment.
Inline comments on the regex-based YAML transformation, repeated registry loading, and missing security test cases. Core design looks good — these are mainly about resilience and completeness.
5ccd517 to
6786123
Compare
6786123 to
26be5ef
Compare
04c8f23 to
054f182
Compare
054f182 to
3f5f621
Compare
|
🌿 Preview your docs: https://nvidia-preview-feat-dynamic-bundle-values-515.docs.buildwithfern.com |
3f5f621 to
16d270a
Compare
Two issues (1 and 2) are still unresolved on
|
Recommended Fixes1. Fix
|
yuanchen8911
left a comment
There was a problem hiding this comment.
there are still unresolved issues. Please take a look.
16d270a to
dda9cd8
Compare
yuanchen8911
left a comment
There was a problem hiding this comment.
LGTM. Both previously confirmed issues are fixed:
- valuesObject -> values: Switched to
helm.values(string field), matching ArgoCD's API. Tests verifyvaluesObjectkey is absent. - --data rejection:
makeArgoCDHelmChartnow explicitly rejects--datawith a clear error, matching the--attestpattern. - Map mutation (prior round):
DeepCopyMapcorrectly isolates mutations.manifest.Renderuses the original map, not the mutated copy.
Non-blocking cosmetic nits (can be cleaned up in this PR or a follow-up):
- Duplicate comment at
bundler.go#L375-L376:// Reject flags not yet supported by the argocd-helm deployer.appears twice - Stale test names in
argocdhelm_test.go#L289and#L400:TestConvertToSingleSourceWithValuesObjectandTestFixValuesObjectTemplatestill reference "ValuesObject" despite the rename to "values" - Stale package doc at
argocdhelm.go#L38: says "when --deployer argocd AND --dynamic" but routing usesDeployerArgoCDHelmas a distinct deployer
3e858ea to
684d690
Compare
b23c1f6 to
1233844
Compare
Summary
Closes #515
as chart files, dynamic values in root values.yaml, merged at render time via mustMergeOverwrite
Test plan
test /tmp/test
Type of Change
Component(s) Affected
cmd/aicr,pkg/cli)cmd/aicrd,pkg/api,pkg/server)pkg/recipe)pkg/bundler,pkg/component/*)pkg/collector,pkg/snapshotter)pkg/validator)pkg/errors,pkg/k8s)docs/,examples/)Implementation Notes
Testing
# Commands run (prefer `make qualify` for non-trivial changes) make qualifyRisk Assessment
Rollout notes:
Checklist
make testwith-race)make lint)git commit -S) — GPG signing info