Fix the helm cache arguments

Index TTL and purge interval were switched in a recent refactor.

Signed-off-by: Sunny <darkowlzz@protonmail.com>
(cherry picked from commit 1260da9229)
This commit is contained in:
Sunny 2023-07-18 13:50:24 +00:00 committed by github-actions[bot]
parent f115596f53
commit cc7e1cf59b
1 changed files with 1 additions and 1 deletions

View File

@ -380,7 +380,7 @@ func mustSetupHelmLimits(indexLimit, chartLimit, chartFileLimit int64) {
helm.MaxChartFileSize = chartFileLimit
}
func mustInitHelmCache(maxSize int, purgeInterval, itemTTL string) (*cache.Cache, time.Duration) {
func mustInitHelmCache(maxSize int, itemTTL, purgeInterval string) (*cache.Cache, time.Duration) {
if maxSize <= 0 {
setupLog.Info("caching of Helm index files is disabled")
return nil, -1