-
Notifications
You must be signed in to change notification settings - Fork 10
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(metallb): remove conflicting IPAddressPools when metallb admission webhook rejects ktf's pool #834
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #834 +/- ##
==========================================
- Coverage 59.87% 59.80% -0.08%
==========================================
Files 48 48
Lines 3983 3993 +10
==========================================
+ Hits 2385 2388 +3
- Misses 1297 1304 +7
Partials 301 301
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
…n webhook rejects ktf's pool
0cf8c6e
to
be750a2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we not just have an option to disable pool creation? Deleting whatever's there without knowing what it is seems a bit much.
I see your point OTOH if with a configuration option you wouldn't be able to back off from a failed e.g. test run using ktf. With such a mechanism it is able "to recover". I'm open to suggestions on this one. |
There aren't any situations where we expect other IPAddressPools to appear without the user expecting them to be there, right? In the case that raised this, it's because the user both enabled the metallb addon and provided their own IPAddressPool. An option to disable addon pool creation enables that bring-your-own pool approach. KTF can recover in the already exists case since it can be reasonably sure that's its IPAddressPool from a previous run. It can't make the same assumption if some other pool simply conflicts. If you don't want that other pool, you shouldn't create it in the first place: |
#835 introduced disabling |
Fixes #832