Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update kv endpoint suffix for custom cloud #189

Merged
merged 1 commit into from
Aug 13, 2020

Conversation

aramase
Copy link
Member

@aramase aramase commented Aug 12, 2020

What this PR does / why we need it:
For custom clouds, the cloud name will be set to custom. If p.AzureCloudEnvironment.Name is used to ParseAzureEnvironment the second time, it'll result in cloud name custom not found error.

Which issue(s) this PR fixes (optional, using fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when the PR gets merged):
Fixes #

Special notes for your reviewer:

@aramase aramase added this to the 0.0.8 milestone Aug 12, 2020
@aramase
Copy link
Member Author

aramase commented Aug 12, 2020

/azp run pr-e2e-azure

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@aramase aramase requested a review from ritazh August 13, 2020 00:41
@ritazh
Copy link
Member

ritazh commented Aug 13, 2020

If cloudName is set to custom, wouldnt this end in an error too?

@aramase
Copy link
Member Author

aramase commented Aug 13, 2020

If cloudName is set to custom, wouldnt this end in an error too?

It will error out if the cloud name isn't valid which is what we expect. Using cloudName the only supported values are AzurePublicCloud, AzureUSGovernmentCloud, AzureChinaCloud, AzureGermanCloud or AZURESTACKCLOUD. Only in case of AZURESTACKCLOUD it's read from the AZURE_ENVIRONMENT_FILEPATH file name as there are no default values for it.

https://github.com/Azure/go-autorest/blob/master/autorest/azure/environments.go#L216-L235

Copy link
Member

@ritazh ritazh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@aramase aramase merged commit c8d377d into Azure:master Aug 13, 2020
@aramase aramase deleted the airgap-cloud branch August 13, 2020 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants