File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
components/node-labeler/cmd Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -30,12 +30,10 @@ import (
30
30
"sigs.k8s.io/controller-runtime/pkg/builder"
31
31
"sigs.k8s.io/controller-runtime/pkg/client"
32
32
"sigs.k8s.io/controller-runtime/pkg/controller"
33
- "sigs.k8s.io/controller-runtime/pkg/handler"
34
33
"sigs.k8s.io/controller-runtime/pkg/healthz"
35
34
"sigs.k8s.io/controller-runtime/pkg/metrics"
36
35
"sigs.k8s.io/controller-runtime/pkg/predicate"
37
36
"sigs.k8s.io/controller-runtime/pkg/reconcile"
38
- "sigs.k8s.io/controller-runtime/pkg/source"
39
37
40
38
"github.com/gitpod-io/gitpod/common-go/log"
41
39
)
@@ -91,12 +89,7 @@ var runCmd = &cobra.Command{
91
89
92
90
err = ctrl .NewControllerManagedBy (mgr ).
93
91
Named ("pod-watcher" ).
94
- For (& corev1.Pod {}).
95
- Watches (
96
- & source.Kind {Type : & corev1.Pod {}},
97
- & handler.EnqueueRequestForObject {},
98
- builder .WithPredicates (filterPredicate ),
99
- ).
92
+ For (& corev1.Pod {}, builder .WithPredicates (filterPredicate )).
100
93
WithOptions (controller.Options {MaxConcurrentReconciles : 1 }).
101
94
Complete (r )
102
95
if err != nil {
You can’t perform that action at this time.
0 commit comments