Skip to content
This repository was archived by the owner on Oct 10, 2023. It is now read-only.

feat(AzureEnvironments): use upstream func for validation#4587

Open
JefeDavis wants to merge 3 commits into
vmware-tanzu:release-0.29from
JefeDavis:release-0.29
Open

feat(AzureEnvironments): use upstream func for validation#4587
JefeDavis wants to merge 3 commits into
vmware-tanzu:release-0.29from
JefeDavis:release-0.29

Conversation

@JefeDavis
Copy link
Copy Markdown

@JefeDavis JefeDavis commented Apr 20, 2023

What this PR does / why we need it

removes hard-coded maps for Azure environments and
calls the EnvironmentFromName function from go-autorest/azure library to leverage upstream provider to validate Azure Environments. Also enables initial ability to specify custom endpoints for AzureStackCloud by using the Environment 'AzureStackCloud', specifying AZURE_ENVIRONMENT_FILEPATH, and providing an AzureEnvironment json file

Which issue(s) this PR fixes

Fixes #3162

Describe testing done for PR

Unit tests have been added to cover this change

Release note

Fixes validation handling when attempting to deploy to AzureStackCloud custom endpoints

Additional information

Special notes for your reviewer

@JefeDavis JefeDavis requested a review from a team as a code owner April 20, 2023 22:37
@JefeDavis JefeDavis requested review from a team April 20, 2023 22:37
@JefeDavis JefeDavis requested a review from a team as a code owner April 20, 2023 22:37
@JefeDavis
Copy link
Copy Markdown
Author

@mminges @conzetti

@github-actions
Copy link
Copy Markdown

Hi @JefeDavis! And thank you for opening your first Pull Request. Someone will review it soon. Thank you for committing to making Tanzu Framework better.

remove hard-coded maps for Azure environments and
call EnvironmentFromName function from go-autorest/azure
library to leverage upstream provider to validate Azure
Environments also enables initial ability to specify custom
endpoints for AzureStackCloud by using the Environment 'AzureStackCloud'
and specifying AZURE_ENVIRONMENT_FILEPATH and providing an
AzureEnvironment json file

Closes Issue vmware-tanzu#3162

Signed-off-by: Jeff Davis <jeffda@vmware.com>
@kmova kmova added the do-not-merge/hold Some fixes necessary, hold for merging label May 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-not-required do-not-merge/hold Some fixes necessary, hold for merging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dynamically assign AD endpoints for Azure, support AzureStack

3 participants