File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
components/node-labeler/cmd Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ import (
25
25
clientgoscheme "k8s.io/client-go/kubernetes/scheme"
26
26
_ "k8s.io/client-go/plugin/pkg/client/auth"
27
27
"k8s.io/client-go/util/retry"
28
+ "k8s.io/utils/pointer"
28
29
ctrl "sigs.k8s.io/controller-runtime"
29
30
"sigs.k8s.io/controller-runtime/pkg/builder"
30
31
"sigs.k8s.io/controller-runtime/pkg/client"
@@ -61,6 +62,7 @@ var runCmd = &cobra.Command{
61
62
LeaderElection : true ,
62
63
LeaderElectionID : "node-labeler.gitpod.io" ,
63
64
Namespace : namespace ,
65
+ SyncPeriod : pointer .Duration (1 * time .Minute ),
64
66
})
65
67
if err != nil {
66
68
log .WithError (err ).Fatal ("unable to start node-labeber" )
@@ -92,9 +94,7 @@ var runCmd = &cobra.Command{
92
94
& handler.EnqueueRequestForObject {},
93
95
builder .WithPredicates (filterPredicate ),
94
96
).
95
- WithOptions (controller.Options {
96
- MaxConcurrentReconciles : 20 ,
97
- }).
97
+ WithOptions (controller.Options {MaxConcurrentReconciles : 20 }).
98
98
Complete (r )
99
99
if err != nil {
100
100
log .WithError (err ).Fatal ("unable to bind controller watch event handler" )
You can’t perform that action at this time.
0 commit comments