From 1260da92294aa0d54357d989a8c3d7c4722e03c0 Mon Sep 17 00:00:00 2001 From: Sunny Date: Tue, 18 Jul 2023 13:50:24 +0000 Subject: [PATCH] Fix the helm cache arguments Index TTL and purge interval were switched in a recent refactor. Signed-off-by: Sunny --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 60d8f0c91..ea840ace2 100644 --- a/main.go +++ b/main.go @@ -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