-
Notifications
You must be signed in to change notification settings - Fork 178
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
feat: Supports PRIVATE_LINK
networking type in mongodbatlas_stream_connection
resource and data sources
#2940
base: CLOUDP-288973-stream-privatelink
Are you sure you want to change the base?
Conversation
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! |
APIx bot: a message has been sent to Docs Slack channel |
@@ -128,9 +129,18 @@ func NewTFStreamConnection(ctx context.Context, projID, instanceName string, cur | |||
|
|||
connectionModel.Networking = types.ObjectNull(NetworkingObjectType.AttrTypes) | |||
if apiResp.Networking != nil { | |||
connectionID := types.StringNull() |
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.
Why not use the apiResp.Networking?
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.
After testing this I realized that the API does not return the ConnectionID, this will be fixed in https://jira.mongodb.org/browse/CLOUDP-294715 and meanwhile I have implemented this to be able to test and use the feature
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.
This extra implementation will be removed once connectionID is returned, and as you said in the other comment, this affects the import which makes the user experience lack a certain feature. Will push for this to be fixed soon
@@ -53,8 +53,8 @@ If `type` is of value `Kafka` the following additional attributes are defined: | |||
* `access` - Information about the networking access. See [access](#access). | |||
|
|||
### Access | |||
* `name` - Id of the vpc peer when the type is `VPC`. |
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.
what about name
?
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.
attribute exists in the API and SDK but is not a used attribute. It was created some time ago but it won't be used going forward https://jira.mongodb.org/browse/CLOUDP-294716 . When we first implemented the networking attribute for VPC peering, this attribute existed but was later removed. We removed it from the code but remained in the docs
acc.SkipTestForCI(t) | ||
mig.SkipIfVersionBelow(t, "1.25.0") // when resource 1st released |
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.
Instead of skipping would recommend to adjust the skip version to 1.26.0 so we dont forget to include this test once release is done
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.
After discussing with upstream team, we will not run tests for stream private link endpoint in the CI for now. There are ongoing discussions to get credits on Confluent Cloud, but until then we won't run the tests in the CI to avoid unnecessary costs from confluent
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 for clarifying, always good to capture with a comment for future reference
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.
+1 for the comment!
Description
Adds support for PRIVATE_LINK networking type in
mongodbatlas_stream_connection
resource and data sourcesLink to any related issue(s): CLOUDP-292668
Type of change:
Required Checklist:
Further comments