diff --git a/internal/controller/cache/cache.go b/internal/controller/cache/cache.go index 9e04da62..9dcace72 100644 --- a/internal/controller/cache/cache.go +++ b/internal/controller/cache/cache.go @@ -20,7 +20,7 @@ func New(config *rest.Config, options cache.Options) (cache.Cache, error) { func applySelectors(options cache.Options) cache.Options { // The only objects we allow are the ones with the 'created-by: nats-manager' label applied. - createdByNATSManager := fromLabelSelector(label.SelectorCreatedByNATS()) + createdByNATSManager := fromLabelSelector(label.SelectorInstanceNATS()) // Apply the label selector to all relevant objects. options.ByObject = map[client.Object]cache.ByObject{