mirror of https://github.com/helm/helm
`CheckDependencies` matched dependencies only by name, so a chart that had previously downloaded a dependency (charts/<name>) was considered satisfied even when its installed version no longer satisfied the version constraint in Chart.yaml. With --dependency-update, `helm install` / `helm template` therefore silently kept the outdated dependency instead of updating it. Compare the installed chart version against the requested constraint using IsCompatibleRange, and treat the dependency as present only when the name matches and either no constraint is declared or the installed version satisfies it. Expose Version() on the chart/dependency accessors to make this possible. Fixes #31455 Signed-off-by: waterWang <672684719@qq.com>pull/32588/head
parent
d62bee21c2
commit
f7f1c74dc0
Loading…
Reference in new issue