Skip to content

Conversation

@adleong
Copy link
Member

@adleong adleong commented Mar 15, 2025

Depends on #13801

Adds support for excluding certain labels and annotations from being copied onto mirror and federated services. This makes use of the excludedLabels and excludedAnnoations fields in the Link resource. These fields take a list of strings which may be literal label/annotation names or they may be group globs of the form <group>/* which will match all labels/annotations beginning with <group>/. Any matching labels or annotations will not be copied.

We also add corresponding flags to the mc link command: --excluded-labels and --excluded-annotations for setting these fields on the Link resource.

@adleong adleong requested a review from a team as a code owner March 15, 2025 01:21
@adleong adleong marked this pull request as draft March 15, 2025 01:21
adleong added 18 commits March 19, 2025 19:24
Signed-off-by: Alex Leong <[email protected]>
Signed-off-by: Alex Leong <[email protected]>
Signed-off-by: Alex Leong <[email protected]>
Signed-off-by: Alex Leong <[email protected]>
Signed-off-by: Alex Leong <[email protected]>
Signed-off-by: Alex Leong <[email protected]>
Signed-off-by: Alex Leong <[email protected]>
Signed-off-by: Alex Leong <[email protected]>
@adleong adleong marked this pull request as ready for review March 21, 2025 23:44
@adleong
Copy link
Member Author

adleong commented Mar 21, 2025

pay no attention to my unhinged commit history

@alpeb
Copy link
Member

alpeb commented Mar 26, 2025

I'm gonna be squashing all the commits together to facilitate resolving conflicts with main.

Edit: I was trying to rebase, but it's actually easier to just merge main.

Copy link
Member

@alpeb alpeb left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@alpeb alpeb merged commit e97b51b into main Mar 26, 2025
41 checks passed
@alpeb alpeb deleted the alex/federated-filtering branch March 26, 2025 20:08
alpeb added a commit that referenced this pull request Mar 26, 2025
alpeb added a commit to linkerd/website that referenced this pull request Mar 27, 2025
This accounts for the work from linkerd/linkerd2#13783 and
linkerd/linkerd2#13802 where we defined the criteria for copying
metadata (labels, annotations and ports) from mirrored services into
federated services.
alpeb added a commit to linkerd/website that referenced this pull request Apr 11, 2025
* Add "Metadata Coyping" section to the multicluster ref doc

This accounts for the work from linkerd/linkerd2#13783 and
linkerd/linkerd2#13802 where we defined the criteria for copying
metadata (labels, annotations and ports) from mirrored services into
federated services.
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.

3 participants