diff --git a/controllers/common.go b/controllers/common.go index 106c9897..79822ed8 100644 --- a/controllers/common.go +++ b/controllers/common.go @@ -34,4 +34,5 @@ const ( EnableWebhooksEnvVar = "ENABLE_WEBHOOKS" ControllerSyncPeriodEnvVar = "SYNC_PERIOD" ConnectUsingPlainHTTPEnvVar = "CONNECT_USING_PLAIN_HTTP" + MaxConcurrentReconciles = "MAX_CONCURRENT_RECONCILES" ) diff --git a/main.go b/main.go index 10417de5..955660dc 100644 --- a/main.go +++ b/main.go @@ -161,7 +161,7 @@ func main() { } var maxConcurrentReconciles int - if maxConcurrentReconcilesEnvValue := getIntEnv("MAX_CONCURRENT_RECONCILES"); maxConcurrentReconcilesEnvValue > 0 { + if maxConcurrentReconcilesEnvValue := getIntEnv(controllers.MaxConcurrentReconciles); maxConcurrentReconcilesEnvValue > 0 { maxConcurrentReconciles = maxConcurrentReconcilesEnvValue log.Info(fmt.Sprintf("maxConcurrentReconciles set to %d", maxConcurrentReconciles)) }