kcp
kcp copied to clipboard
feature: ResourceSelector based on labels
Feature Description
When creating APIBindings/APIExports it would be great to be able select resources based on labels;
type ResourceSelector struct {
Name string `json:"name,omitempty"`
Namespace string `json:"namespace,omitempty"`
MatchLabels: map[string]string{},
}
So in example we can filter object by labels and act only if users indent to by labels. ,objects
Proposed Solution
Extend ResourceSelector with labels
Alternative Solutions
No response
Want to contribute?
- [X] I would like to work on this issue.
Additional Context
No response
FYI @nrb
Will add this as a task to #1937