Skip to content

Commit

Permalink
c/r changes: Watches now expects client.Object
Browse files Browse the repository at this point in the history
See kubernetes-sigs/controller-runtime#2135

Signed-off-by: irbekrm <irbekrm@gmail.com>
  • Loading branch information
irbekrm committed May 30, 2023
1 parent 4f6dc96 commit 9b9f7ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/bundle/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func AddBundleController(ctx context.Context, mgr manager.Manager, opts Options)

// Reconcile over owned ConfigMaps in all Namespaces. Only cache metadata.
// These ConfigMaps will be Bundle Targets
Watches(&source.Kind{Type: new(corev1.ConfigMap)}, &handler.EnqueueRequestForOwner{
Watches(&corev1.ConfigMap{}, &handler.EnqueueRequestForOwner{
OwnerType: new(trustapi.Bundle),
IsController: true,
}, builder.OnlyMetadata).
Expand Down

0 comments on commit 9b9f7ec

Please sign in to comment.