-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
4.16
-
Quality / Stability / Reliability
-
False
-
-
None
-
Moderate
-
No
-
None
-
None
-
None
-
In Progress
-
Bug Fix
-
-
None
-
None
-
None
-
None
Description of problem:
The hypershift cli has a bunch of usages of new clients in Azure where it doesn't pass the associated cloud you're in. As a result, if you tried to create a hosted cluster in any cloud other than azure public cloud, it would fail.
Version-Release number of selected component (if applicable):
How reproducible:
Every time
Steps to Reproduce:
1. Try to use hypershift-cli to create hosted cluster in Azure govcloud
2. it fails due to new clients not passing in cloud options, defaulting it to public cloud
Actual results:
Fails
Expected results:
Success
Additional info:
https://github.com/openshift/hypershift/pull/3804 introduced a Cloud parameter on the hosted cluster which can be used to create clients correctly.
options need to be passed to the associated azure clients to pick the correct cloud.
Example incorrect usage of client: https://github.com/openshift/hypershift/blob/da9833da34ebc3b518a739aafe2810f8de4af709/cmd/infra/azure/create.go#L173
Correct usage should set `options` instead of `nil` and correctly set the cloud as an option.