mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
fix: revert default background scan interval to 1h (#11754)
Signed-off-by: ShutingZhao <shuting@nirmata.com>
This commit is contained in:
parent
734a622f0b
commit
37d6936902
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ func main() {
|
||||||
signalCtx, setup, sdown := internal.Setup(appConfig, "kyverno-background-controller", false)
|
signalCtx, setup, sdown := internal.Setup(appConfig, "kyverno-background-controller", false)
|
||||||
defer sdown()
|
defer sdown()
|
||||||
var err error
|
var err error
|
||||||
bgscanInterval := 30 * time.Second
|
bgscanInterval := time.Hour
|
||||||
val := os.Getenv("BACKGROUND_SCAN_INTERVAL")
|
val := os.Getenv("BACKGROUND_SCAN_INTERVAL")
|
||||||
if val != "" {
|
if val != "" {
|
||||||
if bgscanInterval, err = time.ParseDuration(val); err != nil {
|
if bgscanInterval, err = time.ParseDuration(val); err != nil {
|
||||||
|
|
Loading…
Reference in a new issue