Skip to content

Commit

Permalink
Fix godoc
Browse files Browse the repository at this point in the history
  • Loading branch information
chrischdi committed Dec 19, 2024
1 parent 887ee67 commit 205939e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions util/predicates/generic_predicates.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,15 +310,13 @@ func processIfTopologyOwned(scheme *runtime.Scheme, logger logr.Logger, obj clie
}

// ResourceIsChanged returns a predicate that returns true only if the resource
// has changed. This predicate allows to drop events which come resync events on
// additionally watched objects.
// has changed. This predicate allows to drop resync events on additionally watched objects.
func ResourceIsChanged(logger logr.Logger) predicate.Funcs {
return TypedResourceIsChanged[client.Object](logger)
}

// TypedResourceIsChanged returns a predicate that returns true only if the resource
// has changed. This predicate allows to drop events which come resync events on
// additionally watched objects.
// has changed. This predicate allows to drop resync events on additionally watched objects.
func TypedResourceIsChanged[T client.Object](logger logr.Logger) predicate.TypedFuncs[T] {
log := logger.WithValues("predicate", "ResourceIsTopologyOwned")
return predicate.TypedFuncs[T]{
Expand Down

0 comments on commit 205939e

Please sign in to comment.