Fix the helm cache arguments
Index TTL and purge interval were switched in a recent refactor. Signed-off-by: Sunny <darkowlzz@protonmail.com>
This commit is contained in:
parent
cb4b6605c2
commit
1260da9229
2
main.go
2
main.go
|
@ -380,7 +380,7 @@ func mustSetupHelmLimits(indexLimit, chartLimit, chartFileLimit int64) {
|
||||||
helm.MaxChartFileSize = chartFileLimit
|
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 {
|
if maxSize <= 0 {
|
||||||
setupLog.Info("caching of Helm index files is disabled")
|
setupLog.Info("caching of Helm index files is disabled")
|
||||||
return nil, -1
|
return nil, -1
|
||||||
|
|
Loading…
Reference in New Issue