Skip to content

Parity with python client for version variables? #178

@lentzi90

Description

@lentzi90

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions