Skip to content

Commit 27ea764

Browse files
committed
1
Signed-off-by: Manuel de Brito Fontes <[email protected]>
1 parent 5f12704 commit 27ea764

File tree

1 file changed

+3
-3
lines changed
  • components/node-labeler/cmd

1 file changed

+3
-3
lines changed

components/node-labeler/cmd/run.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import (
2525
clientgoscheme "k8s.io/client-go/kubernetes/scheme"
2626
_ "k8s.io/client-go/plugin/pkg/client/auth"
2727
"k8s.io/client-go/util/retry"
28+
"k8s.io/utils/pointer"
2829
ctrl "sigs.k8s.io/controller-runtime"
2930
"sigs.k8s.io/controller-runtime/pkg/builder"
3031
"sigs.k8s.io/controller-runtime/pkg/client"
@@ -61,6 +62,7 @@ var runCmd = &cobra.Command{
6162
LeaderElection: true,
6263
LeaderElectionID: "node-labeler.gitpod.io",
6364
Namespace: namespace,
65+
SyncPeriod: pointer.Duration(1 * time.Minute),
6466
})
6567
if err != nil {
6668
log.WithError(err).Fatal("unable to start node-labeber")
@@ -92,9 +94,7 @@ var runCmd = &cobra.Command{
9294
&handler.EnqueueRequestForObject{},
9395
builder.WithPredicates(filterPredicate),
9496
).
95-
WithOptions(controller.Options{
96-
MaxConcurrentReconciles: 20,
97-
}).
97+
WithOptions(controller.Options{MaxConcurrentReconciles: 20}).
9898
Complete(r)
9999
if err != nil {
100100
log.WithError(err).Fatal("unable to bind controller watch event handler")

0 commit comments

Comments
 (0)