Skip to content

Commit 3ed841d

Browse files
committed
Drop controller-runtime deps
1 parent c20746d commit 3ed841d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

events/controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ type Controller[T client.Object] struct {
2727
EventWatchChannel <-chan watch.Event
2828
}
2929

30-
func NewController[T client.Object](ctx context.Context, client client.Client, clock clock.Clock, channel <-chan watch.Event) *Controller[T] {
30+
func NewController[T client.Object](client client.Client, clock clock.Clock, channel <-chan watch.Event) *Controller[T] {
3131
gvk := object.GVK(object.New[T]())
3232
return &Controller[T]{
3333
gvk: gvk,
@@ -38,7 +38,7 @@ func NewController[T client.Object](ctx context.Context, client client.Client, c
3838
}
3939
}
4040

41-
func (c *Controller[T]) Register(ctx context.Context, m manager.Manager) error {
41+
func (c *Controller[T]) Register(_ context.Context, m manager.Manager) error {
4242
return controllerruntime.NewControllerManagedBy(m).
4343
Named(fmt.Sprintf("operatorpkg.%s.events", strings.ToLower(c.gvk.Kind))).
4444
WatchesRawSource(singleton.Source()).

0 commit comments

Comments
 (0)