-
Notifications
You must be signed in to change notification settings - Fork 189
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
chore: Updates mongodbatlas_cluster
to consume selected processArgs fields from the createCluster/updateCluster APIs
#3250
base: CLOUDP-296222-adv_conf_cluster_api
Are you sure you want to change the base?
Conversation
Bumps [crazy-max/ghaction-import-gpg](https://github.com/crazy-max/ghaction-import-gpg) from 6.2.0 to 6.3.0. - [Release notes](https://github.com/crazy-max/ghaction-import-gpg/releases) - [Commits](crazy-max/ghaction-import-gpg@cb9bde2...e89d409) --- updated-dependencies: - dependency-name: crazy-max/ghaction-import-gpg dependency-version: 6.3.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: maastha <[email protected]>
* build(deps): bump go.mongodb.org/atlas-sdk * handle breaking changes in latest SDK version * fix unit test * fix unit test * fixes * revert changes in search index * dereference fields now that it's a pointer --------- Co-authored-by: oarbusi <[email protected]> Co-authored-by: Oriol Arbusi <[email protected]>
* feat: Supports configuring BYOK encryption on search nodes (#3142) * use SDK preview in encryption_at_rest * changelog * Revert "use SDK preview in encryption_at_rest" This reverts commit 609c9dc. * trigger change in EAR * Revert "trigger change in EAR" This reverts commit 15794dd. * Reapply "use SDK preview in encryption_at_rest" This reverts commit 1c2db30. * TEMPORARY: send enabled_for_search_nodes = true * finish resource implementation and tests * data source implementation and test * doc update * default and refactor test * remove old migration test * default value in resource * unit test --------- Co-authored-by: Oriol Arbusi <[email protected]> * feat: Adds `encryption_at_rest_provider` to `mongodbatlas_search_deployment` resource and data source (#3152) * use preview * add encryption_at_rest_provider computed attribute * remove check * dosc * rename files * move adv_cluster config out of resources * fix config * project id * add TODO to version * doc: Updates examples with newly added attributes to `mongodbatlas_search_deployment` and `mongodbatlas_encryption_at_rest` (#3174) * add new attribute to the example * examples updates * nit: end with new line * fix tf validate * todos * PR suggestions + test failure --------- Co-authored-by: Leo Antoli <[email protected]>
… endpoint services (#3252)
@@ -31,7 +31,7 @@ require ( | |||
github.com/stretchr/testify v1.10.0 | |||
github.com/wI2L/jsondiff v0.6.1 | |||
github.com/zclconf/go-cty v1.16.2 | |||
go.mongodb.org/atlas v0.37.0 | |||
go.mongodb.org/atlas v0.37.1-0.20250402194754-dd09936138bc |
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.
will be replaced with new release version before merge
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.
recommend to add a comment so we don't forget
…erraform-provider-mongodbatlas into CLOUDP-296222-cluster-resource
Will re-run complete acc test group cluster in sometime as dev is unstable right now when creating new projects |
@@ -17,3 +17,10 @@ func StringPtr(v string) *string { | |||
} | |||
return nil | |||
} | |||
|
|||
func SliceFromPtr[T any](slicePtr *[]T) []T { |
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.
I wonder if we have this need elsewhere and we could use there this func as well, or we're already using another approach/func and we can use that instead of creating this func
@@ -228,6 +240,29 @@ func expandTagSliceFromSetSchema(d *schema.ResourceData) []*matlas.Tag { | |||
return res | |||
} | |||
|
|||
func expandClusterAdvancedConfiguration(d *schema.ResourceData) *matlas.AdvancedConfiguration { | |||
ac := d.Get("advanced_configuration") | |||
if aclist, ok1 := ac.([]any); ok1 && len(aclist) > 0 { |
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.
nit: just need check len(aclist) as it won't have elements if there is an error, so you wouldn't need ok1
@@ -508,6 +508,7 @@ func resourceCreate(ctx context.Context, d *schema.ResourceData, meta any) diag. | |||
AutoScaling: autoScaling, | |||
ProviderSettings: providerSettings, | |||
ReplicationSpecs: replicationSpecs, |
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.
there are not test changes, can we add/update tests what would fail before this change but will pass now?
Description
Updates
mongodbatlas_cluster
to consume selected processArgs fields from the createCluster/updateCluster APIs.Link to any related issue(s): CLOUDP-296222
Type of change:
Required Checklist:
Further comments