From 37d6936902a33074b605bf2318ad1d4f4775b674 Mon Sep 17 00:00:00 2001 From: shuting Date: Thu, 12 Dec 2024 19:22:10 +0800 Subject: [PATCH] fix: revert default background scan interval to 1h (#11754) Signed-off-by: ShutingZhao --- cmd/background-controller/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/background-controller/main.go b/cmd/background-controller/main.go index eb366a7488..5caf3a97fe 100644 --- a/cmd/background-controller/main.go +++ b/cmd/background-controller/main.go @@ -137,7 +137,7 @@ func main() { signalCtx, setup, sdown := internal.Setup(appConfig, "kyverno-background-controller", false) defer sdown() var err error - bgscanInterval := 30 * time.Second + bgscanInterval := time.Hour val := os.Getenv("BACKGROUND_SCAN_INTERVAL") if val != "" { if bgscanInterval, err = time.ParseDuration(val); err != nil {