-
Notifications
You must be signed in to change notification settings - Fork 554
[neutron]: introduce Stateful argument for the security groups #3092
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
Conversation
Since this is a breaking API change, I wonder if we shouldn't document it right away and explain the migration in MIGRATING.md or something cc @stephenfin @pierreprinetti |
@EmilienM hm, this is not a breaking change. The change is absolutely backwards compatible. |
We changed the signature of You can check the output of
|
@mandre since |
Right, so this could be a bug in go-apidiff. |
Labels |
You changed a function signature, which means that you're breaking a statement like this one: var myFunc func(*gophercloud.ServiceClient, secgroup.ListOpts) = secgroup.List |
@pierreprinetti haven't thought about this, but fair enough. However it's not clear in how many places you can see such patterns. |
@pierreprinetti shall I revert this PR? |
You'd be surprised. cluster-api-provider-openstack for example wraps all Gophercloud calls into custom interfaces, so that it can mock its logic. |
I don't think so. But if you want to use |
@pierreprinetti I'm going to create a v2 branch with a corresponding backport automation. |
Prior to starting a PR, please make sure you have read our
contributor tutorial.
Prior to a PR being reviewed, there needs to be a Github issue that the PR
addresses. Replace the brackets and text below with that issue number.
Fixes #3091
Links to the line numbers/files in the OpenStack source code that support the
code in this PR:
https://github.com/openstack/neutron-lib/blob/47e1736c10ffd6f1850eba9970acdc00373f9de7/neutron_lib/api/definitions/stateful_security_group.py#L36-L42