Skip to content

Commit

Permalink
Use instance as the label selector
Browse files Browse the repository at this point in the history
  • Loading branch information
friedrichwilken committed Jan 3, 2024
1 parent 0aa71fa commit 03e3c5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 03e3c5d

Please sign in to comment.