Skip to content

Commit

Permalink
Allow setting leader-election.image via flags/env-variables
Browse files Browse the repository at this point in the history
This will make it possible to get this value from a separate configmap instead of the normal naiserator.yml config file.
  • Loading branch information
mortenlj committed Nov 6, 2023
1 parent 273ce4a commit 5ba42e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/naiserator/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ func init() {
"how often to run a full synchronization of all applications",
)

flag.String(LeaderElectionImage, "", "image to use for leader election in deployed applications")
flag.Int(MaxConcurrentReconciles, 1, "maximum number of concurrent Reconciles which can be run by the controller.")
flag.Int(RateLimitQPS, 20, "how quickly the rate limit burst bucket is filled per second")
flag.Int(RateLimitBurst, 200, "how many requests to Kubernetes to allow per second")
Expand Down

0 comments on commit 5ba42e2

Please sign in to comment.