Skip to content

Commit

Permalink
using const name instead of string
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonAleksandrov13 committed Dec 2, 2024
1 parent 4643dc7 commit a2df60e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions controllers/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ const (
EnableWebhooksEnvVar = "ENABLE_WEBHOOKS"
ControllerSyncPeriodEnvVar = "SYNC_PERIOD"
ConnectUsingPlainHTTPEnvVar = "CONNECT_USING_PLAIN_HTTP"
MaxConcurrentReconciles = "MAX_CONCURRENT_RECONCILES"
)
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit a2df60e

Please sign in to comment.