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

fix(routes): deleting wrong routes when other server has same private IP #472

Merged
merged 1 commit into from
Jul 18, 2023

Conversation

apricote
Copy link
Member

In case another server in the project has the same Private IP (in another network) as one of our cluster nodes, hccm would happily delete&recreate the route on every route reconciliation.

This fixes the bug by only adding the Private IPs in the correct network to the AllServersCache ByPrivateIP lookup map.

Fixes #470

@apricote apricote added the bug Something isn't working label Jul 18, 2023
@apricote apricote requested a review from a team as a code owner July 18, 2023 10:29
@apricote apricote self-assigned this Jul 18, 2023
In case another server in the project has the same Private IP (in
another network) as one of our cluster nodes, hccm would happily
delete&recreate the route on every route reconciliation.

This fixes the bug by only adding the Private IPs in the correct network
to the AllServersCache ByPrivateIP lookup map.

Fixes #470

Co-authored-by: Jonas Lammler <ljonas@riseup.net>
@apricote apricote force-pushed the fix-routes-flapping branch from e0692e0 to 7581558 Compare July 18, 2023 10:37
@apricote apricote merged commit 5461038 into main Jul 18, 2023
@apricote apricote deleted the fix-routes-flapping branch July 18, 2023 11:37
apricote pushed a commit that referenced this pull request Jul 18, 2023
🤖 I have created a release *beep* *boop*
---


##
[1.17.0](v1.16.0...v1.17.0)
(2023-07-18)


### Features

* **helm:** allow to set labels and annotations for podMonitor
([#471](#471))
([5dad655](5dad655))
* upgrade to hcloud-go v2 e4352ec
([5a066a1](5a066a1))


### Bug Fixes

* **helm-chart:** resource namespace and name
([#462](#462))
([0c4eee6](0c4eee6))
* **routes:** deleting wrong routes when other server has same private
IP
([#472](#472))
([5461038](5461038)),
closes
[#470](#470)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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.

fix: routes deleted+added every route reconcilation interval with 1.16.0
2 participants