mirror of
https://github.com/helm/chartmuseum.git
synced 2026-02-05 15:45:50 +01:00
* pkg/chartmuseum,cmd: introduce the new `keep-chart-always-up-to-date` flag and the default cache interval when not set. * The flags works to always get the realtime index for the chart repository(which is the behavior before v0.13.0), it will cost more fs I/O. * Default interval is now set to 5m when `cache-interval` flag not set which we suggests in the issue list. The patch includes: * increases most of the museum api throughout by wrapping the event emitter into goroutine since the event listener already holds on the concurrent lock(#396). * adds the new server option `keep-chart-always-up-to-date` to force use the latest version. * `getIndexFile` rollbacks to fully reload index only if cacheinterval not set for better backward compatibility before v0.13.0(#444). Signed-off-by: scnace <scbizu@gmail.com> Signed-off-by: scbizu <scbizu@gmail.com> * pkg/chartmuseum/server: `getRepoObjectSlice` adds the read lock when index refresher works. Signed-off-by: scbizu <scbizu@gmail.com> * pkg/chartmuseum: rebuildIndex adds tenant lock Signed-off-by: scbizu <scbizu@gmail.com> * pkg/config: clarify the usage of always-regenerate-chart-index Co-authored-by: Casey Buto <cbuto@d2iq.com> Signed-off-by: Nace Sc <scbizu@icloud.com> Signed-off-by: scbizu <scbizu@gmail.com>