Skip to content

Commit

Permalink
Use IsNamespaceManaged in suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
naemono committed Dec 1, 2021
1 parent e5fbba4 commit 8c32098
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/common/predicates/predicates.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func NewManagedNamespacesPredicate(managedNamespaces []string) predicate.Predica
return IsNamespaceManaged(e.Object.GetNamespace(), managedNamespaces)
},
GenericFunc: func(e event.GenericEvent) bool {
return namespaceInSlice(e.Object.GetNamespace(), managedNamespaces)
return IsNamespaceManaged(e.Object.GetNamespace(), managedNamespaces)
},
}
}
Expand Down

0 comments on commit 8c32098

Please sign in to comment.