Skip to content

Conversation

@jwongmongodb
Copy link
Collaborator

@jwongmongodb jwongmongodb commented Apr 24, 2025

Description

This adds an example for adding Azure PL with Streams using EVENTHUB. I also updated the streams privatelink documentation to match the latest Admin API for Streams CreatePrivateLinkConnections.

Link to any related issue(s):
CLOUDP-301853

Note: there is a slight deviation from the API docs for the vendor field. The API always had this field as optional when terraform has it as required. However, omitting the vendor field is only valid for AZURE which defaults it to the EVENTHUB value. To keep from introducing a breaking change, we will omit this documentation for TF. (We will likely change this vendor field to required in a future breaking API audit for streams and want to avoid flip flopping the field in terraform from required to not required back to required)

Type of change:

  • Bug fix (non-breaking change which fixes an issue). Please, add the "bug" label to the PR.
  • New feature (non-breaking change which adds functionality). Please, add the "enhancement" label to the PR. A migration guide must be created or updated if the new feature will go in a major version.
  • Breaking change (fix or feature that would cause existing functionality to not work as expected). Please, add the "breaking change" label to the PR. A migration guide must be created or updated.
  • This change requires a documentation update
  • Documentation fix/enhancement

Required Checklist:

  • I have signed the MongoDB CLA
  • I have read the contributing guides
  • I have checked that this change does not generate any credentials and that they are NOT accidentally logged anywhere.
  • I have added tests that prove my fix is effective or that my feature works per HashiCorp requirements
  • I have added any necessary documentation (if appropriate)
  • I have run make fmt and formatted my code
  • If changes include deprecations or removals I have added appropriate changelog entries.
  • If changes include removal or addition of 3rd party GitHub actions, I updated our internal document. Reach out to the APIx Integration slack channel to get access to the internal document.

Further comments

Timeouts timeouts.Value `tfsdk:"timeouts"`
SkipWaitOnUpdate types.Bool `tfsdk:"skip_wait_on_update"`
EncryptionAtRestProvider types.String `tfsdk:"encryption_at_rest_provider"`
SkipWaitOnUpdate types.Bool `tfsdk:"skip_wait_on_update"`
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is from the automatic fieldalignment

@jwongmongodb jwongmongodb marked this pull request as ready for review April 24, 2025 18:14
@jwongmongodb jwongmongodb requested review from a team as code owners April 24, 2025 18:14
@jwongmongodb jwongmongodb requested a review from oarbusi April 24, 2025 18:14
@github-actions
Copy link
Contributor

APIx bot: a message has been sent to Docs Slack channel

Copy link
Contributor

@kanchana-mongodb kanchana-mongodb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM % copy

@@ -0,0 +1,7 @@
```release-note:note
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if we include changelog for example/docs updates?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, I should remove the changelog?

I see in your link that it says the following doesn't need a changelog, does this include datasource docs too?

Resource and provider documentation updates

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed the changelog


```release-note:note
datasource/mongodbatlas_stream_privatelink_endpoint: Add documentation and example for using Azure PrivateLink with Atlas Streams
```
Copy link
Member

@lantoli lantoli Apr 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use 3rd person: Adds ...

also plural ds, stream_privatelink_endpoints, is missing in changelog

**NOTE**: Groups and projects are synonymous terms. Your group id is the same as your project id. For existing groups, your group or project id remains the same. The resource and corresponding endpoints use the term groups.
- `provider_name` (String) Provider where the Kafka cluster is deployed.
- `vendor` (String) Vendor who manages the Kafka cluster.
- `project_id` (String) Unique 24-hexadecimal digit string that identifies your project. Use the [/groups](#tag/Projects/operation/listProjects) endpoint to retrieve all projects to which the authenticated user has access.<br>**NOTE**: Groups and projects are synonymous terms. Your group id is the same as your project id. For existing groups, your group or project id remains the same. The resource and corresponding endpoints use the term groups.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting usage of <br> inside attribute description!

Copy link
Collaborator

@EspenAlbert EspenAlbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you for addressing the comments

Copy link
Collaborator

@oarbusi oarbusi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jwongmongodb jwongmongodb merged commit 35b8476 into master Apr 29, 2025
43 of 44 checks passed
@jwongmongodb jwongmongodb deleted the CLOUDP-301853_update_azure_pl_doc_example branch April 29, 2025 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants