-
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: Support pinned_fcv
in attribute in cluster resource and data sources
#2793
Conversation
58f186e
to
6d49ed9
Compare
redactClientLogData, err := newAtlasGet(ctx, connV2, projectID, clusterName) | ||
latestClusterModel, err := newAtlasGet(ctx, connV2, projectID, clusterName) | ||
if err != nil { | ||
return diag.FromErr(fmt.Errorf(errorClusterRead, clusterName, err)) | ||
} | ||
if err := d.Set("redact_client_log_data", redactClientLogData); err != nil { | ||
if err := d.Set("redact_client_log_data", latestClusterModel.GetRedactClientLogData()); err != nil { | ||
return diag.FromErr(fmt.Errorf(advancedcluster.ErrorClusterSetting, "redact_client_log_data", clusterName, err)) | ||
} | ||
|
||
if err := d.Set("pinned_fcv", advancedcluster.FlattenPinnedFCV(latestClusterModel)); err != nil { |
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.
as flatten function makes use of cluster SDK model, adjusted newAtlasGet
to return the model directly
current failing tests in cluster group are not related and have been identified in nightly runs since Nov 9th:
|
"mongo_db_major_version": "7.0", | ||
}), | ||
}, | ||
// TODO: add steps for upgrading and downgrading mongo_db_major_version |
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.
pending adjustment after upstream fix
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! |
Description
Link to any related issue(s): CLOUDP-283841
NOTE - PR is currently in draft and cannot yet be merged: Waiting for a fix in 2024-10-23 cluster API to adjust response value of mongo_db_major_version property (CLOUDP-269950). This will enable users to upgrade and downgrade when having FCV pinned.
This PR uses #2789 as base branch, reusing
advanced_cluster
FCV logic.Type of change:
Required Checklist:
Further comments