Skip to content

Commit 2a54e94

Browse files
authored
resync period (#523)
1 parent 5911d33 commit 2a54e94

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import (
2020
"context"
2121
"flag"
2222
"os"
23+
"time"
2324

2425
"sigs.k8s.io/controller-runtime/pkg/metrics/server"
2526

@@ -107,6 +108,8 @@ func main() {
107108
},
108109
}
109110
}
111+
syncPeriod := 10 * time.Hour
112+
mgrOptions.Cache.SyncPeriod = &syncPeriod
110113

111114
if !config.Get().AllowClusterAccess {
112115
allowedNamespaces := config.Get().AllowedNamespaces

0 commit comments

Comments
 (0)