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>
This commit is contained in:
Benoit Tigeot 2025-09-05 19:27:44 +02:00
parent e2cbc5c0c9
commit 9e2d4680e1
No known key found for this signature in database
GPG Key ID: 8E6D4FC8AEBDA62C
1 changed files with 1 additions and 0 deletions

View File

@ -215,6 +215,7 @@ func (i IndexFile) Get(name, version string) (*ChartVersion, error) {
}
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
}
}