kcp icon indicating copy to clipboard operation
kcp copied to clipboard

feature: ResourceSelector based on labels

Open mjudeikis opened this issue 2 years ago • 2 comments

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

mjudeikis avatar Mar 24 '23 11:03 mjudeikis

FYI @nrb

ncdc avatar Mar 27 '23 18:03 ncdc

Will add this as a task to #1937

nrb avatar Mar 27 '23 19:03 nrb