mirror of
https://github.com/openshift/installer.git
synced 2026-02-05 15:47:14 +01:00
Following session pattern in v1 sdk, we centralize the construction of v2 sdk aws.Config and API clients for better reusability. To remain backwards compatible, the following is in place: - New config and client constructs are in sessionv2.go while we gradually migrate parts of the installer code. - EndpointResolver v1 is kept around to resolve partition ID of a region. - Service ID in v1 is converted to v2 equivalent internally. The user can continue to use existing values while we migrate the sdk. Notes: - Default service endpoints for CN regions are not handled by the v2 endpoint resolver.