Skip to content

Commit

Permalink
fix: variable name for concurrent reconciliations
Browse files Browse the repository at this point in the history
  • Loading branch information
waveywaves committed Nov 22, 2023
1 parent 04e30da commit c85d597
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,18 @@ func init() {

func main() {
var (
metricsAddr string
probeAddr string
enableLeaderElection bool
concurrent int
metricsAddr string
probeAddr string
enableLeaderElection bool
concurrentReconciliations int
)

flag.StringVar(&metricsAddr, "metrics-bind-address", ":8080", "The address the metric endpoint binds to.")
flag.StringVar(&probeAddr, "health-probe-bind-address", ":8081", "The address the probe endpoint binds to.")
flag.BoolVar(&enableLeaderElection, "leader-elect", false,
"Enable leader election for controller manager. "+
"Enabling this will ensure there is only one active controller manager.")
flag.IntVar(&concurrent, "concurrent", 5, "The number of concurrent reconciles per controller.")
flag.IntVar(&concurrentReconciliations, "concurrent", 5, "The number of concurrent reconciles per controller.")
opts := zap.Options{
Development: true,
}
Expand All @@ -88,7 +88,7 @@ func main() {
LeaderElectionID: "bfbf93f2.uffizzi.com",
Controller: ctrlcfg.ControllerConfigurationSpec{
GroupKindConcurrency: map[string]int{
uclusteruffizzicomv1alpha1.SchemaGroupVersion.WithKind("UffizziCluster").String(): concurrent,
uclusteruffizzicomv1alpha1.SchemaGroupVersion.WithKind("UffizziCluster").GroupKind().String(): concurrentReconciliations,
},
RecoverPanic: pointer.Bool(true),
},
Expand Down

0 comments on commit c85d597

Please sign in to comment.