-
Notifications
You must be signed in to change notification settings - Fork 611
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
Fixing bug with minimumOrigins=0 #1338
Conversation
changelog detected ✅ |
Codecov Report
@@ Coverage Diff @@
## master #1338 +/- ##
==========================================
+ Coverage 48.33% 48.42% +0.08%
==========================================
Files 133 134 +1
Lines 13023 13104 +81
==========================================
+ Hits 6295 6345 +50
- Misses 5201 5220 +19
- Partials 1527 1539 +12
|
@tc80 are you able to confirm if this is something we intentionally don't support? i'm not sure why someone would want an empty pool but i may be missing something. |
@jacobbednarz thanks for tagging me! From the API docs,
So a bit different from an "empty pool". I suppose if |
To add some context, we are building a kubernetes operator to manage cloudflare objects and we have separate CRDs for pools and origins. We want our users to be able to create pool objects in a cluster and then origin objects from any cluster. Thus we have a need to be able to create pools with no origins so users can attach origins to them later. We tested this behavior and found we can do so only if minimum_origins is set to 0. If it is set to anything higher, we get the error: "the minimum_origins must be in range [1, 0]: validation failed" if we don't define any origins. Thus not being able to set minimum_origins to 0 effectively prevents us from being able to create empty pools.
|
talked with the team and this should be okay to merge 👍 |
This functionality has been released in v0.74.0. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
Provide a general summary of your changes in the title above. You should
remove this overview, any sections and any section descriptions you
don't need below before submitting. There isn't a strict requirement to
use this template if you can structure your description and still cover
these points.
Description
Closes #1337
Has your change been tested?
Confirmed pool gets created properly with the code snippet from issue #1337
Screenshots (if appropriate):
Types of changes
What sort of change does your code introduce/modify?
Folks will have to use a int pointer for minimumOrigins instead of int for LoadBalancerPool.
Checklist:
and relies on stable APIs.