Skip to content

Commit

Permalink
Update predicates.go
Browse files Browse the repository at this point in the history
  • Loading branch information
AdheipSingh authored Apr 22, 2023
1 parent d1420be commit 4fe7b9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/predicates.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

type Predicates interface {
IgnoreNamespacePredicate(obj client.Object) bool
IgnoreIgnoredObjectPredicate(obj client.Object) bool
IgnoreObjectPredicate(obj client.Object) bool
IgnoreUpdate(e event.UpdateEvent) bool
}

Expand Down Expand Up @@ -67,7 +67,7 @@ func (c *CommonPredicates) IgnoreNamespacePredicate(obj client.Object) bool {
//
// This function should be called within the create or update predicate to ensure that the namespaces with the
// ignore annotation are properly filtered before reconciliation takes place.
func (c *CommonPredicates) IgnoreIgnoredObjectPredicate(obj client.Object) bool {
func (c *CommonPredicates) IgnoreObjectPredicate(obj client.Object) bool {
var log = c.Log.WithName("predicates")

if ignoredStatus := obj.GetAnnotations()[c.IgnoreAnnotation]; ignoredStatus == "true" {
Expand Down

0 comments on commit 4fe7b9b

Please sign in to comment.