Get cloud config for go track2 sdk from resource manager endpoint #20959
Labels
ARM - Core
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
feature-request
This issue requires a new behavior in the product in order be resolved.
Milestone
Feature Request
In track2 go sdk, clould config can be fetched from resource manager endpoint.
https://github.com/Azure/go-autorest/blob/c2958ac74c65c138045daa60f149c5f9d949d743/autorest/azure/metadata_environment.go#L96-L141
I'm wondering if there is any utility available in track2 go sdk with which we can easily fetch cloud config from resource manager endpoint. Thanks!
Background: https://github.com/kubernetes-sigs/cloud-provider-azure/ is migrating sdk from track1 to track2.
cloud provider will accept a param which holds value of resource endpoint url.
https://github.com/kubernetes-sigs/cloud-provider-azure/blob/11f66ee392b34fe8958756188e5782ce6d448f91/pkg/provider/config/azure_auth.go#L76
If the param is set, the cloud provider will fetch endpoint info from arm resource which is serving at resource endpoint url.
https://github.com/kubernetes-sigs/cloud-provider-azure/blob/11f66ee392b34fe8958756188e5782ce6d448f91/pkg/provider/config/azure_auth.go#L268-L274
This feature is feasible when the application is running in air-gap environment and azurestack environment.
The text was updated successfully, but these errors were encountered: