This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Track resources with a label selector (#367)
Update tracker package to the latest from knative.dev/pkg/tracker, and then heavily modified to remove dependence on Knative packages and align with controller-runtime. The Tracker can now track resources by name or by selector. The Everything selector along with an empty namespace can be used to implicitly track all resource of a given type. The Tracker#TrackReference method can specify either a name or selector used to match resource. The Tracker#TrackObject method is a convenience method to convert a client.Object into a tracker.Reference. Similar to the existing Config#TrackAndGet method, there is a new Config#TrackAndList method that follows the contract for client.List while also tracking resources matching the query. Direct users of the Tracker will need to adapt to the new interface, however, indirect uses (like reconciler tests) are preserved. Signed-off-by: Scott Andrews <[email protected]>
- Loading branch information
Showing
13 changed files
with
1,014 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.