Warn when we fallback to a different version on `helm pull`

Close: https://github.com/helm/helm/issues/31253

Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
pull/31254/head
Benoit Tigeot 3 weeks ago
parent e2cbc5c0c9
commit 9e2d4680e1
No known key found for this signature in database
GPG Key ID: 8E6D4FC8AEBDA62C

@ -215,6 +215,7 @@ func (i IndexFile) Get(name, version string) (*ChartVersion, error) {
} }
if constraint.Check(test) { if constraint.Check(test) {
slog.Warn("unable to find exact version; falling back to closest available version", "chart", name, "requested", version, "selected", ver.Version)
return ver, nil return ver, nil
} }
} }

Loading…
Cancel
Save