changing error to warn as requested by Matt

Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
pull/30592/head
Robert Sirchia 7 months ago
parent a11f4c0026
commit f50547bf51
No known key found for this signature in database
GPG Key ID: C2D40F4D8196E874

@ -356,7 +356,7 @@ func loadIndex(data []byte, source string) (*IndexFile, error) {
for name, cvs := range i.Entries {
for idx := len(cvs) - 1; idx >= 0; idx-- {
if cvs[idx] == nil {
slog.Error("skipping loading invalid entry for chart %q from %s: empty entry", name, source)
slog.Warn("skipping loading invalid entry for chart %q from %s: empty entry", name, source)
continue
}
// When metadata section missing, initialize with no data
@ -367,7 +367,7 @@ func loadIndex(data []byte, source string) (*IndexFile, error) {
cvs[idx].APIVersion = chart.APIVersionV1
}
if err := cvs[idx].Validate(); ignoreSkippableChartValidationError(err) != nil {
slog.Error("skipping loading invalid entry for chart %q %q from %s: %s", name, cvs[idx].Version, source, err)
slog.Warn("skipping loading invalid entry for chart %q %q from %s: %s", name, cvs[idx].Version, source, err)
cvs = append(cvs[:idx], cvs[idx+1:]...)
}
}

Loading…
Cancel
Save