when doing the following commands:
* `helm repo add`
* `helm repo update`
* `helm search repo`
during validation of repository, invalid charts are counted and a
single warning is printed:
skipped loading 2964 invalid chart entries from www.helm.repo
also, new `helm repo validate` command that works identical to
`helm repo update` but shows a warning for each invalid chart
Closes#9407
Signed-off-by: Russell Cousineau <russell.cousineau@xandr.com>
log.Printf("skipping loading invalid entry for chart %q %q from %s: %s",name,cvs[idx].Version,source,err)
invalidCharts++
if!consolidateWarnings{
log.Printf("skipping loading invalid entry for chart %q %q from %s: %s",name,cvs[idx].Version,source,err)
}
cvs=append(cvs[:idx],cvs[idx+1:]...)
}
}
}
ifinvalidCharts>0&&consolidateWarnings{
log.Printf("skipped loading %d invalid chart entries from %s\nrun 'helm repo update --show-all-warnings' for full list of invalid entries",invalidCharts,source)