helm / chartmuseum

helm chart repository server
https://chartmuseum.com
Apache License 2.0
3.57k stars 400 forks source link

Update index.go #748

Open wutongjie23hao opened 8 months ago

wutongjie23hao commented 8 months ago

the chartversions of index.yaml should be equal to the length of chartversion objects in storage backend. if not equal, we should regenerate the index.yaml.

scbizu commented 8 months ago

I prefer to not accept this PR , since we already have internal-cache option and always-regenerate-chart-index option on the other hand , this kind of feature seems duplicate . What do you think ? @cbuto

wutongjie23hao commented 8 months ago

I prefer to not accept this PR , since we already have internal-cache option and always-regenerate-chart-index option on the other hand , this kind of feature seems duplicate . What do you think ? @cbuto

always regenerate index only when the depth set a certain value. This is not valid when we set flag '--depth-dynamic'.