Skip to content

Add support for AzureDNSZone enabled storage accounts used for deep storage#16016

Merged
zachjsh merged 3 commits intoapache:masterfrom
zachjsh:support-for-AzureDNSZone
Mar 4, 2024
Merged

Add support for AzureDNSZone enabled storage accounts used for deep storage#16016
zachjsh merged 3 commits intoapache:masterfrom
zachjsh:support-for-AzureDNSZone

Conversation

@zachjsh
Copy link
Copy Markdown
Contributor

@zachjsh zachjsh commented Feb 29, 2024

Description

Added a new config to AzureAccountConfig

storageAccountEndpointSuffix

which allows the user to specify a storage account endpoint suffix where the underlying storage account is enabled for AzureDNSZone. The previous config endpointSuffix, did not allow support for such accounts. The previous config has been deprecated in favor of this new config. Also fixed an issue where managedIdentityClientId was not being set properly

This PR has:

  • been self-reviewed.
  • added documentation for new or modified features or behaviors.
  • a release note entry in the PR description.
  • added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
  • added or updated version, license, or notice information in licenses.yaml
  • added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
  • added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met.
  • added integration tests.
  • been tested in a test Druid cluster.

…torage

Added a new config to AzureAccountConfig

`storageAccountEndpointSuffix`

which allows the user to specify a storage account endpoint suffix where the underlying
storage account is enabled for AzureDNSZone. The previous config `endpointSuffix`, did not allow
support for such accounts. The previous config has been deprecated in favor of this new config. Also
fixed an issue where `managedIdentityClientId` was not being set properly
@zachjsh zachjsh marked this pull request as ready for review February 29, 2024 22:02
Comment thread docs/development/extensions-core/azure.md Outdated
Comment thread docs/development/extensions-core/azure.md Outdated
Properties properties = initializePropertes();
AzureAccountConfig config = makeInjectorWithProperties(properties).getInstance(AzureAccountConfig.class);
Assert.assertEquals(config.getEndpointSuffix(), AzureUtils.DEFAULT_AZURE_ENDPOINT_SUFFIX);
Assert.assertNull(config.getEndpointSuffix());

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation

Invoking [AzureAccountConfig.getEndpointSuffix](1) should be avoided because it has been deprecated.
@zachjsh zachjsh requested a review from georgew5656 March 1, 2024 16:18
@zachjsh zachjsh merged commit 720f1e8 into apache:master Mar 4, 2024
@adarshsanjeev adarshsanjeev added this to the 30.0.0 milestone May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants