Skip to content

Centralize Label Prefiltering and Matching#299

Merged
VDanielEdwards merged 10 commits intomainfrom
new_labelmatcher
Mar 27, 2026
Merged

Centralize Label Prefiltering and Matching#299
VDanielEdwards merged 10 commits intomainfrom
new_labelmatcher

Conversation

@VJanKraemer
Copy link
Copy Markdown
Contributor

Fix the bug found in #294

Centralize the Prefiltering and Matching

Developer checklist (address before review)

  • Changelog.md updated
  • Prepared update for depending repositories
  • Documentation updated (public API changes only)
  • API docstrings updated (public API changes only)
  • Rebase → commit history clean
  • Squash and merge → proper PR title

@VJanKraemer VJanKraemer added the bug Something isn't working label Mar 9, 2026
VJanKraemer and others added 10 commits March 27, 2026 10:52
* Adds a getValue function for the specified key with proper error
  handling included

Signed-off-by: Jan Kraemer <jan.kraemer@vector.com>
Signed-off-by: Jan Kraemer <jan.kraemer@vector.com>
In SpecificDiscoveryStore, add the label set along with the handler info
to the DiscoveryCluster as "Controller" info. This allows us to do the
label matching centralized in the DiscoveryStore

Signed-off-by: Jan Kraemer <jan.kraemer@vector.com>
* Add test to test whether the optional label prefiltering works when
  the publishers are started before the Subscriber

Signed-off-by: Konrad Breitsprecher <Konrad.Breitsprecher@vector.com>
Co-authored-by: Jan Kraemer <jan.kraemer@vector.com>
Signed-off-by: Marius Börschig <Marius.Boerschig@vector.com>
Co-authored-by: Jan Kraemer <jan.kraemer@vector.com>
* Add comments to better explain the used algorithm, since it is
  somewhat convoluted

Signed-off-by: Jan Kraemer <jan.kraemer@vector.com>
Signed-off-by: Jan Kraemer <jan.kraemer@vector.com>
Signed-off-by: Daniel Edwards <Daniel.Edwards@vector.com>
Signed-off-by: Daniel Edwards <Daniel.Edwards@vector.com>
Signed-off-by: Daniel Edwards <Daniel.Edwards@vector.com>
Copy link
Copy Markdown
Member

@VDanielEdwards VDanielEdwards left a comment

Choose a reason for hiding this comment

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

LGTM! 👍

@VDanielEdwards VDanielEdwards merged commit 0130846 into main Mar 27, 2026
15 checks passed
@VDanielEdwards VDanielEdwards deleted the new_labelmatcher branch March 27, 2026 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants