Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
[OpenStack] Support os-client-config usage for authentication #3274
- What I did
Updated the Gophercloud dependencies and also bring in the 'utils' package. This provides support for configuring access to OpenStack clouds as detailed in the official documentation. It maintains compatibility by allowing users to specify credentials via environment variables.
I've removed the command-line options for specifying access and authentication-related settings as I believe these are redundant.
By relying on this package we can simplify the code required to interact with OpenStack's APIs. Support is also provided upstream for self-signed and insecure SSL configurations.
- How to verify it
Tested with a public cloud running OpenStack 'Rocky':
nick@deadline:..om/yankcrime/linuxkit> bin/linuxkit push openstack \ ~/Temp/linuxkitopenstack.qcow2 Uploading file /Users/nick/Temp/linuxkitopenstack.qcow2 with Image ID 62835b67-717a-4741-8f02-bccd58c78c7c Image uploaded successfully! nick@deadline:..om/yankcrime/linuxkit> bin/linuxkit run openstack -flavor "hotdog" \ -keyname deadline -instancename LinuxKitTest \ -network 33ac0b19-8812-4e3f-b514-d32346c2e618 \ linuxkitopenstack Server created, UUID is 72f45613-6a23-4cc9-81d5-2208392dda76 72f45613-6a23-4cc9-81d5-2208392dda76
- Description for the changelog
Add support for configuring access to OpenStack clouds via os-cloud-config.
Signed-off-by: Nick Jones firstname.lastname@example.org