Skip to content

Commit

Permalink
Support AZURE_ENVIRONMENT_NAME for Azure Gov (zalando#688)
Browse files Browse the repository at this point in the history
Need to persist this env var `AZURE_ENVIRONMENT_NAME` for Azure gov to work. It helps the azure sdk select the correct endpoints.
  • Loading branch information
kim0 authored Jan 27, 2022
1 parent ab4ddee commit 1e9b9e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions ENVIRONMENT.rst
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,4 @@ For more inforamation on the Azure specific options, refer to https://github.com
- **AZURE_STORAGE_SAS_TOKEN**
- **WALG_AZURE_BUFFER_SIZE**
- **WALG_AZURE_MAX_BUFFERS**
- **AZURE_ENVIRONMENT_NAME**
3 changes: 2 additions & 1 deletion postgres-appliance/scripts/configure_spilo.py
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,8 @@ def write_wale_environment(placeholders, prefix, overwrite):
'WALE_S3_ENDPOINT', 'AWS_ENDPOINT', 'AWS_REGION', 'AWS_INSTANCE_PROFILE',
'WALG_S3_SSE_KMS_ID', 'WALG_S3_SSE', 'WALG_DISABLE_S3_SSE', 'AWS_S3_FORCE_PATH_STYLE']
azure_names = ['WALG_AZ_PREFIX', 'AZURE_STORAGE_ACCOUNT', 'AZURE_STORAGE_ACCESS_KEY',
'AZURE_STORAGE_SAS_TOKEN', 'WALG_AZURE_BUFFER_SIZE', 'WALG_AZURE_MAX_BUFFERS']
'AZURE_STORAGE_SAS_TOKEN', 'WALG_AZURE_BUFFER_SIZE', 'WALG_AZURE_MAX_BUFFERS',
'AZURE_ENVIRONMENT_NAME']
gs_names = ['WALE_GS_PREFIX', 'WALG_GS_PREFIX', 'GOOGLE_APPLICATION_CREDENTIALS']
swift_names = ['WALE_SWIFT_PREFIX', 'SWIFT_AUTHURL', 'SWIFT_TENANT', 'SWIFT_TENANT_ID', 'SWIFT_USER',
'SWIFT_USER_ID', 'SWIFT_USER_DOMAIN_NAME', 'SWIFT_USER_DOMAIN_ID', 'SWIFT_PASSWORD',
Expand Down

0 comments on commit 1e9b9e5

Please sign in to comment.