mirror of https://github.com/helm/helm
Previously the chart source was recorded by mutating the chart's metadata annotations in pkg/cmd before calling RunWithContext. Because the render values expose chart metadata to templates (.Chart comes from accessor.MetadataAsMap()), this injected meta.helm.sh/release-source into .Chart.Annotations during template rendering, which could change rendered manifests for charts that enumerate or branch on chart annotations. Move the annotation to the action layer and apply it only after rendering completes, via a new Install.ChartSource / Upgrade.ChartSource field. The annotation lands on the persisted release's chart metadata (the same chart pointer stored on the release) but is never present in the template render context, so 'helm list --show-source' and 'helm get metadata' still surface the source while rendered output is unaffected. The cmd helper is reduced to a pure chartSource() resolver (repo URL preferred, credentials stripped); sanitizeChartSource is unchanged. Adds an action-level test asserting the source is absent from the rendered manifest but present on the stored release. Signed-off-by: Shaan Satsangi <shaansatsangi@gmail.com>pull/32250/head
parent
57667c932c
commit
7f8dc21813
Loading…
Reference in new issue