Skip to content

Commit c85d597

Browse files
committed
fix: variable name for concurrent reconciliations
1 parent 04e30da commit c85d597

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

main.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,18 @@ func init() {
5959

6060
func main() {
6161
var (
62-
metricsAddr string
63-
probeAddr string
64-
enableLeaderElection bool
65-
concurrent int
62+
metricsAddr string
63+
probeAddr string
64+
enableLeaderElection bool
65+
concurrentReconciliations int
6666
)
6767

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

0 commit comments

Comments
 (0)