-
Notifications
You must be signed in to change notification settings - Fork 188
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: Add support for using DEV/QA for mongodbgov #2009
Conversation
LGTM, one question asked offline |
@lantoli updated based on discussion |
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.
LGTM, just a small suggestion
Co-authored-by: Leo Antoli <[email protected]>
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.
LGTM
func isGovBaseURLConfiguredForProvider(data *tfMongodbAtlasProviderModel) bool { | ||
return isGovBaseURLConfigured(data.BaseURL.ValueString()) | ||
} |
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: would remove this function replacing for the inner call directly
func isGovBaseURLConfiguredForSDK2Provider(d *schema.ResourceData) bool { | ||
return isGovBaseURLConfigured(d.Get("base_url").(string)) | ||
} |
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.
same here
Description
Currently if
is_mongodbgov_cloud
flag is set in the provider config, it will always call mongodbgov production, even ifbase_url
is set to use dev/QA env of mongodbgov. This PR will let the user/developer specify base_url correctly whenis_mongodbgov_cloud
flag is set.Link to any related issue(s):
Type of change:
Required Checklist:
Further comments