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

include namespace in metallb address-pool name #287

Merged
merged 1 commit into from
May 31, 2022

Conversation

deitch
Copy link
Contributor

@deitch deitch commented May 27, 2022

Fixes #286

We were including only the service name (without the namespace) when naming the address pool for metallb. This meant that if we created two services with the same name, but in different namespaces - which is completely legitimate from Kubernetes' perspective - only the first would work. The second would generate a metallb error.

This change includes the namespace and the name in metallb.

I ran tests, as well as went through the metallb code, and see no issues.

Signed-off-by: Avi Deitcher <avi@deitcher.net>
@deitch deitch force-pushed the namespace-in-metallb-address-pools branch from f405888 to 6fa932b Compare May 31, 2022 15:19
Copy link
Member

@cprivitere cprivitere left a comment

Choose a reason for hiding this comment

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

lgtm

@cprivitere cprivitere merged commit 2aae3b9 into master May 31, 2022
@cprivitere cprivitere deleted the namespace-in-metallb-address-pools branch May 31, 2022 15:28
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.

MetalLB not assigning LoadBalancer IPs to services in a different namespace
2 participants