feat: Private Link Online Archive add Azure support#4355
feat: Private Link Online Archive add Azure support#4355marcabreracast wants to merge 43 commits intomasterfrom
Conversation
… to run in CI and adjust autogen testing
…_LiftAndShift_Replace_Manual_Resource_With_Autogen
| MONGODB_ATLAS_PRIVATE_ENDPOINT_DNS_NAME: ${{ secrets.mongodb_atlas_private_endpoint_dns_name }} | ||
| MONGODB_ATLAS_PRIVATE_ENDPOINT_ID: ${{ secrets.mongodb_atlas_private_endpoint_id }} | ||
| MONGODB_ATLAS_PRIVATE_ENDPOINT_ID_REPLACE: ${{ secrets.mongodb_atlas_private_endpoint_id_replace }} | ||
| MONGODB_ATLAS_PRIVATE_ENDPOINT_ID_AZURE: ${{ secrets.mongodb_atlas_private_endpoint_id_azure }} |
There was a problem hiding this comment.
These variables are still not wired to the repo, however would like confirmation whether we have a pre-Azure setup that I can use for this, or use my own instead.
Would prefer the first option as we might risk having the endpoint_id removed at some point.
There was a problem hiding this comment.
I see we have some azure resources used in our ci (azure_vnet_name, azure_key_vault_name, azure_resource_group_name), would suggesting seeing where those resources live and stay as consistent as possible
There was a problem hiding this comment.
Yep correct, got the info I needed doing a bit of digging and added the vars for the test
|
APIx bot: a message has been sent to Docs Slack channel |
…online archive resource with autogen (#4351) * Remove _api naming from autogen resource * Register autogen resource on provider * Deregister manual resource from provider * Add migration test to autogen repo * Update acceptance test naming for autogen resource * With new endpoint ID added to repo, readding test in order to be able to run in CI and adjust autogen testing * feat: Add privatelink endpoint service data federation online archive model * Add missing secret to avoid lint issue * Add missing secret to acceptance tests workflow * Fix status field to keep being Computed * Remove api autogen file to avoid test errors * Add changelog for new supported import format * Strip status field from CREATE request * Fix tests pointing to wrong resource * Update docs to reflect on import support behaviour * Fix changelog * Address doc comments * Rename test files to match autogen pattern * Remove manual resource, as it's no longer used * Send status field hardcoded on CREATE * Remove manual acceptance tests from network block * Refactor acceptance tests * Move config to top of file
0917ce2 to
31a7f57
Compare
| @@ -0,0 +1,5 @@ | |||
| ```release-note:enhancement | |||
| resource/mongodbatlas_privatelink_endpoint_service_data_federation_online_archive: Adds Azure support, including `customer_endpoint_ip_address`, `azure_link_id`, `error_message`, and `status` | |||
There was a problem hiding this comment.
should be three different entries
| status: | ||
| computability: | ||
| computed: true | ||
| azure_link_id: |
There was a problem hiding this comment.
Maybe add a quick why this is necessary?
|
|
||
| func (r *rs) PreImport(id string) (string, error) { | ||
| if strings.Contains(id, "/") { | ||
| // Normalized format: project_id/endpoint_id (AWS only). |
There was a problem hiding this comment.
Is this comment accurate?
There was a problem hiding this comment.
Yes, currently normalized import is only supported on AWS, not for Azure as noted in the docs. We will be keeping legacy support for both Azure and AWS though.
| %[11]s | ||
| %[12]s | ||
| `, | ||
| acc.ConfigAzurermProvider(subscriptionID, clientID, clientSecret, tenantID), |
There was a problem hiding this comment.
this list is very long. Is it worth splitting up and instead using + between the strings?
|
|
||
| private_service_connection { | ||
| name = "atlas-df-connection" | ||
| private_connection_resource_id = %[7]q |
There was a problem hiding this comment.
where is this coming from? Is there no way we can create it within the test?
There was a problem hiding this comment.
I've opened a thread with upstream team regarding this value, as I have not identify a way of retrieving this field through the Atlas Admin API so far
| `, projectID, endpointID, comment, optionalFields, singularDataSourceConfig, pluralDataSourceConfig) | ||
| } | ||
|
|
||
| const singularDataSourceConfig = ` |
There was a problem hiding this comment.
[nit] why moved from the top?
| ), | ||
| }, | ||
| Check: resource.ComposeAggregateTestCheckFunc( | ||
| checkExists(resourceName), |
There was a problem hiding this comment.
refactor to use CheckRSAndDS in internal/testutil/acc/attribute_checks.go
|
This PR has gone 7 days without any activity and meets the project’s definition of "stale". This will be auto-closed if there is no new activity over the next 7 days. If the issue is still relevant and active, you can simply comment with a "bump" to keep it open, or add the label "not_stale". Thanks for keeping our repository healthy! |
|
Closed in favor of blocked status for CLOUDP-389847 |
Description
This PR adds Azure support for
mongodbatlas_privatelink_endpoint_service_data_federation_online_archive.Azure fields introduced (already present in autogen code)
As part of Azure support, we are documenting fields that are already defined in the autogenerated implementation.
The following fields are already present in autogen schema/model.
customer_endpoint_ip_address: IP address used to connect to the Azure private endpoint.azure_link_id: Link ID that identifies the Azure private endpoint connection.error_message: Error message returned when private endpoint approval/connection fails.status: Current status of the private endpoint connection request.Additional changes:
Link to related issue(s):
Blocker
This PR is pending https://jira.mongodb.org/browse/CLOUDP-391704.
We should not merge this PR until CLOUDP-391704 is resolved and behaviour is verified as expected.
Link to any related issue(s): CLOUDP-329593
Type of change:
Required Checklist:
Further comments