Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bgpv1: Prevent multiple reconcilers with the same name #29071

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

rastislavs
Copy link
Contributor

@rastislavs rastislavs commented Nov 9, 2023

This change ensures that when multiple reconcilers with the same are passed to the BGPRouterManager, only the one with the highest priority is actually used for reconciliation.

This prevents from corrupting data in the ReconcilerMetadata map (indexed by the reconciler name), and allows for overriding the reconcilers by a reconciler with the same name but higher priority.

@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Nov 9, 2023
@rastislavs rastislavs added the release-note/misc This PR makes changes that have no direct user impact. label Nov 9, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Nov 9, 2023
@rastislavs rastislavs added area/bgp kind/cleanup This includes no functional changes. labels Nov 9, 2023
@rastislavs rastislavs force-pushed the bgp-reconciler-plumbing branch from b01038f to 7311424 Compare November 9, 2023 08:52
@rastislavs
Copy link
Contributor Author

/test

@rastislavs rastislavs marked this pull request as ready for review November 9, 2023 13:04
@rastislavs rastislavs requested a review from a team as a code owner November 9, 2023 13:04
@rastislavs rastislavs force-pushed the bgp-reconciler-plumbing branch 2 times, most recently from cc6e2ad to 79f91e1 Compare November 9, 2023 14:54
Copy link
Contributor

@harsimran-pabla harsimran-pabla left a comment

Choose a reason for hiding this comment

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

lgtm

@harsimran-pabla
Copy link
Contributor

/test

This change ensures that when multiple reconcilers
with the same are passed to the BGPRouterManager, only the
one with the highest priority is actually used for reconciliation.

This prevents from corrupting data in the ReconcilerMetadata map
(indexed by the reconciler name), and allows for overriding
the reconcilers by a reconciler with the same name but higher priority.

Signed-off-by: Rastislav Szabo <rastislav.szabo@isovalent.com>
@rastislavs rastislavs force-pushed the bgp-reconciler-plumbing branch from 79f91e1 to 7424fc2 Compare November 10, 2023 08:49
@rastislavs
Copy link
Contributor Author

/test

@rastislavs rastislavs added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Nov 13, 2023
@squeed squeed merged commit 4656d50 into cilium:main Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/bgp kind/cleanup This includes no functional changes. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants