Skip to content

Conversation

@AryanP123
Copy link
Contributor

add labelSelector support; set listener Service label to name; unit tests

Fixes #2109

if target == nil {
continue
}
req, err := k8slabels.Parse(selector)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AryanP123 I'd really rather see this cached in the Registry - probably ideally up-front on Update, but on first access is probably okay also.

It is possible that Registry.filter is going to get called a lot, so logging "Ignoring label-template" each time could get noisy, and rerunning k8slabels.Parse could end up churning lots of memory+cpu cycles in the long run.

@fgiorgetti
Copy link
Member

@AryanP123 @c-kruse Looking at the original issue and to what this change is doing, it seems like the annotations defined in the ConfigMap are not going to be replicated across the target services of a provided labelSelector. If that is true, my only recommendation would be to raise a skupper-docs issue, to get it properly documented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enhanced Labeling Configuration

3 participants