-
Notifications
You must be signed in to change notification settings - Fork 57
Description
I have a use case for setting the compute API version in clouds.yaml
and/or thought the env variable COMPUTE_API_VERSION
, but only identity and volume API versions are currently available. It is however, available in python.
After some more research on this, there seems to be more missing in gophercloud than just the compute API version. Would it be acceptable to bring it into parity with the python client? These are the variables that can be used with the python client but are ignored by gophercloud from what I can tell:
export OS_BAREMETAL_API_VERSION
export OS_COMPUTE_API_VERSION
export OS_IMAGE_API_VERSION
export OS_NETWORK_API_VERSION
export OS_ORCHESTRATION_API_VERSION
export OS_IRONIC_API_VERSION
export OS_PLACEMENT_API_VERSION
Would it be possible to add the compute API version here as well? I would be happy to work on a PR!
Edit: Edited to expand from just comput API version to bring the clientconfig up to parity with the python client.
I'm not well versed in the OpenStack SDK, but I have managed to dig up some hopefully relevant code.
Link to OpenStackSDK files:
- https://opendev.org/openstack/openstacksdk/src/branch/master/openstack/config/loader.py
- https://opendev.org/openstack/openstacksdk/src/commit/ef7b73f0cec36df6b2071b2689c17aba277c9701/openstack/tests/unit/test_microversions.py
- https://opendev.org/openstack/openstacksdk/src/commit/ef7b73f0cec36df6b2071b2689c17aba277c9701/openstack/config/cloud_region.py#L451
- https://opendev.org/openstack/openstacksdk/src/commit/ef7b73f0cec36df6b2071b2689c17aba277c9701/openstack/tests/unit/config/test_cloud_config.py
- https://opendev.org/openstack/openstacksdk/src/commit/ef7b73f0cec36df6b2071b2689c17aba277c9701/doc/source/user/microversions.rst?display=source#L23-L25