Skip to content

Commit a2df60e

Browse files
using const name instead of string
1 parent 4643dc7 commit a2df60e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

controllers/common.go

+1
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,5 @@ const (
3434
EnableWebhooksEnvVar = "ENABLE_WEBHOOKS"
3535
ControllerSyncPeriodEnvVar = "SYNC_PERIOD"
3636
ConnectUsingPlainHTTPEnvVar = "CONNECT_USING_PLAIN_HTTP"
37+
MaxConcurrentReconciles = "MAX_CONCURRENT_RECONCILES"
3738
)

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ func main() {
161161
}
162162

163163
var maxConcurrentReconciles int
164-
if maxConcurrentReconcilesEnvValue := getIntEnv("MAX_CONCURRENT_RECONCILES"); maxConcurrentReconcilesEnvValue > 0 {
164+
if maxConcurrentReconcilesEnvValue := getIntEnv(controllers.MaxConcurrentReconciles); maxConcurrentReconcilesEnvValue > 0 {
165165
maxConcurrentReconciles = maxConcurrentReconcilesEnvValue
166166
log.Info(fmt.Sprintf("maxConcurrentReconciles set to %d", maxConcurrentReconciles))
167167
}

0 commit comments

Comments
 (0)