Skip to content

Commit

Permalink
fix broken c/r API
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Ramlot <[email protected]>
  • Loading branch information
inteon committed Apr 27, 2024
1 parent bd5e219 commit 905bd9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 1 addition & 4 deletions controllers/issuer_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,7 @@ func (r *IssuerReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manage
IssuerPredicate{},
),
).
WatchesRawSource(
r.EventSource.AddConsumer(forObjectGvk),
nil,
)
WatchesRawSource(r.EventSource.AddConsumer(forObjectGvk))

if r.PreSetupWithManager != nil {
err := r.PreSetupWithManager(ctx, forObjectGvk, mgr, build)
Expand Down
4 changes: 1 addition & 3 deletions internal/kubeutil/source_channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ import (
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apimachinery/pkg/types"
"k8s.io/client-go/util/workqueue"
"sigs.k8s.io/controller-runtime/pkg/handler"
"sigs.k8s.io/controller-runtime/pkg/predicate"
"sigs.k8s.io/controller-runtime/pkg/reconcile"
"sigs.k8s.io/controller-runtime/pkg/source"
)
Expand Down Expand Up @@ -110,7 +108,7 @@ func (cs *eventConsumer) String() string {
}

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

0 comments on commit 905bd9b

Please sign in to comment.