-
Notifications
You must be signed in to change notification settings - Fork 510
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
loadbalancer: Use CreateMemberOpts instead of BatchUpdateMemberOpts in PoolCreateOpts #2560
loadbalancer: Use CreateMemberOpts instead of BatchUpdateMemberOpts in PoolCreateOpts #2560
Conversation
…n PoolCreateOpts In order to support members without any subnet, the struct for the pool members need to be CreateMemberOpts.
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.
Thank you for submitting your first PR! Be sure that we will be looking at it but keep in mind
this sometimes takes a while.
Please let the maintainers know if your PR has not got enough attention after a few days.
If any doubt, please consult our PR tutorial.
cc @dulek |
Could you please update the tests accordingly, so at least we get happy CI jobs. Thanks |
also FYI I marked this PR as non backward compatible since we're changing the type of an existing parameter in a struct. |
I'm not sure about the CI, but the change makes sense to me. |
Wait, are we allowed to break API like this? With this change |
previously this happened a lot, see #1332 |
Alright, cool, then works for me. |
@dulek @kayrus @mandre |
My bad. For my defense, I'll blame Github's terrible UI. |
In order to support members without any subnet, the struct for the pool members need to be CreateMemberOpts.
Fixes #2559
Links to the line numbers/files in the OpenStack source code that support the
code in this PR:
API validation for UUID in octavia:
https://opendev.org/openstack/octavia/src/commit/c2c59f4c9eb9f9ef6081e386bf2bc1badc145241/octavia/api/v2/types/member.py#L127