Skip to content

Commit

Permalink
Fix the helm cache arguments
Browse files Browse the repository at this point in the history
Index TTL and purge interval were switched in a recent refactor.

Signed-off-by: Sunny <darkowlzz@protonmail.com>
(cherry picked from commit 1260da9)
  • Loading branch information
darkowlzz authored and github-actions[bot] committed Jul 19, 2023
1 parent f115596 commit cc7e1cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cc7e1cf

Please sign in to comment.