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

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

Open
wants to merge 3 commits into
base: release-0.29
Choose a base branch
from

Conversation

JefeDavis
Copy link

@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
Copy link
Author

@mminges @conzetti

@github-actions
Copy link

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