-
Notifications
You must be signed in to change notification settings - Fork 383
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
Ensure Gateway Address Uniqueness #361
Comments
since #1601 merged, it occurs to me that if we had some mechanism to ensure the uniqueness of gateway address in the first place, the gateway with duplicate address should never be ready, and will save us a lot of enery to debug it. so, i propose to add a gloabl Set structure, probably a field
what it does is pretty simple, it checks whether the IP address has been allocated by other gateway before add it into gateway/internal/status/gateway.go Line 38 in f466430
if we find the addr is duplicated, we shall surface the gateway with as for deletion, we can delete the addr along with gateway resources: gateway/internal/provider/kubernetes/controller.go Lines 965 to 967 in f466430
cc @arkodg |
@shawnh2 I like the idea, the only issue I see is the logic to implement this will be sprinkled into multiple areas and packages which maybe hard to maintain in the long run |
agree. also i think this is not like something we must implement, it's more like a insurance. for now, we may rarely encounter this problem, so it would be nice to keep this as an optional feature. |
sure, agreed, lets leave this open until a need arises in the future |
This issue has been automatically marked as stale because it has not had activity in the last 30 days. |
#360 specifies the need to add support for user-defined Gateway addresses. When multiple Gateways exist with user-defined addresses, an address conflict may arise. EG should check the user-defined addresses across the managed Gateways and ensure that they are unique.
The text was updated successfully, but these errors were encountered: