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 <[email protected]>
  • Loading branch information
darkowlzz committed Jul 18, 2023
1 parent cb4b660 commit 1260da9
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 1260da9

Please sign in to comment.