-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.Indicates that an issue or PR should not be auto-closed due to staleness.priority/awaiting-more-evidenceLowest priority. Possibly useful, but not yet enough support to actually get it done.Lowest priority. Possibly useful, but not yet enough support to actually get it done.priority/backlogHigher priority than priority/awaiting-more-evidence.Higher priority than priority/awaiting-more-evidence.
Milestone
Description
I'd like to be able to easily create a source on a specific object rather than the whole kind.
So ideally I could write something like:
var obj runtime.Object
...
c.Watch(&source.Object{Object: obj},...)
the behavior should be that the most specific watcher would be created:
- if namespaced type:
- if neither
namespace
norname
are initialized, behave likesource.Kind
- if only
namespace
is initialized, create a watch for that type in that namespace - if both
namespace
andname
are initialized, create a watch for that specific object
- if neither
- if not namespaced:
- if
name
is not initialized behave likesource.Kind
- if
name
is initialized, create a watch for that specific object
- if
this should work also with unstructured objects.
What is the best way to do this with the current controller-runtime library?
I haven't found a way to do it. It looks like the cache.informer
interface does not allow for getting an informer on specific instances or namespace...
Metadata
Metadata
Assignees
Labels
help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.Indicates that an issue or PR should not be auto-closed due to staleness.priority/awaiting-more-evidenceLowest priority. Possibly useful, but not yet enough support to actually get it done.Lowest priority. Possibly useful, but not yet enough support to actually get it done.priority/backlogHigher priority than priority/awaiting-more-evidence.Higher priority than priority/awaiting-more-evidence.