-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
Adding ability to define a custom AzureEnvironment. #2579
base: master
Are you sure you want to change the base?
Conversation
|
Thank you for your contribution! 🙏 We will review it as soon as possible. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! However, let's move it to the configuration rather than ENV VAR.
@@ -81,6 +83,8 @@ public static Uri GetAzureAuthorityHost(this AzureCloud azureCloud) | |||
return AzureAuthorityHosts.AzureGermany; | |||
case AzureCloud.UsGov: | |||
return AzureAuthorityHosts.AzureGovernment; | |||
case AzureCloud.Custom: | |||
return new Uri(Environment.GetEnvironmentVariable("PROMITOR_AZURE_AUTH_ENDPOINT")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's not do this but move it to the YAML configuration instead please
Name = nameof(AzureCustomCloud), | ||
AuthenticationEndpoint = Environment.GetEnvironmentVariable("PROMITOR_AUTH_ENDPOINT"), | ||
ResourceManagerEndpoint = Environment.GetEnvironmentVariable("PROMITOR_RESOURCE_MANAGER_ENDPOINT"), | ||
ManagementEndpoint = Environment.GetEnvironmentVariable("PROMITOR_MANAGEMENT_ENDPOINT"), | ||
GraphEndpoint = Environment.GetEnvironmentVariable("PROMITOR_GRAPH_ENDPOINT"), | ||
StorageEndpointSuffix = Environment.GetEnvironmentVariable("PROMITOR_STORAGE_ENDPOINT_SUFFIX"), | ||
KeyVaultSuffix = Environment.GetEnvironmentVariable("PROMITOR_KEY_VAULT_SUFFIX") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, let's move this to the YAML configuration instead
Add support for a custom azure environment whose endpoints can be defined via environment variables in a helm values file. This creates the ability to deploy to new regions without requiring code changes.