Skip to content

Commit 905bd9b

Browse files
committed
fix broken c/r API
Signed-off-by: Tim Ramlot <[email protected]>
1 parent bd5e219 commit 905bd9b

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

controllers/issuer_controller.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,7 @@ func (r *IssuerReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manage
263263
IssuerPredicate{},
264264
),
265265
).
266-
WatchesRawSource(
267-
r.EventSource.AddConsumer(forObjectGvk),
268-
nil,
269-
)
266+
WatchesRawSource(r.EventSource.AddConsumer(forObjectGvk))
270267

271268
if r.PreSetupWithManager != nil {
272269
err := r.PreSetupWithManager(ctx, forObjectGvk, mgr, build)

internal/kubeutil/source_channel.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ import (
2424
"k8s.io/apimachinery/pkg/runtime/schema"
2525
"k8s.io/apimachinery/pkg/types"
2626
"k8s.io/client-go/util/workqueue"
27-
"sigs.k8s.io/controller-runtime/pkg/handler"
28-
"sigs.k8s.io/controller-runtime/pkg/predicate"
2927
"sigs.k8s.io/controller-runtime/pkg/reconcile"
3028
"sigs.k8s.io/controller-runtime/pkg/source"
3129
)
@@ -110,7 +108,7 @@ func (cs *eventConsumer) String() string {
110108
}
111109

112110
// Start implements Source and should only be called by the Controller.
113-
func (cs *eventConsumer) Start(_ context.Context, _ handler.EventHandler, queue workqueue.RateLimitingInterface, _ ...predicate.Predicate) error {
111+
func (cs *eventConsumer) Start(_ context.Context, queue workqueue.RateLimitingInterface) error {
114112
if cs.register == nil {
115113
return fmt.Errorf("register function not provided")
116114
}

0 commit comments

Comments
 (0)