-
Notifications
You must be signed in to change notification settings - Fork 190
Database users: added x509_type attribute #122
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
Conversation
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.
Missing a few things, especially in docs. See comments. Thanks!
… due to this change in the resource
…tribute and refactored the code due to this change in the singular datasource
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.
Just one small doc change and a few notes.
"database_name": databaseName, | ||
"project_id": projectID, | ||
"username": username, | ||
"auth_database_name": databaseName, |
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 think this is a lot clearer as some found this confusing, thank you! Is there any way to still support the old database_name as well without getting too messy? If not then we'll need to be sure to log this as a breaking change in the Changelog, Fyi @marinsalinas
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 think that it is a breaking change, what do you think @marinsalinas ?
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.
Also the little change in the client breaked up all :S
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.
Oh no, if it's breaking too much we should just leave it as is then, sorry to suggest it as didn't think about how much impact it has and we are already short on time. Let's just revert this and save the headache.
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.
It's okay it breaks a little bit but with this PR all the breaking changes are fixed
…tribute and refactored the code due to this change in plural datasource chore: changed database_name to auth_database_name
chore: updated go mod
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 - reminder we'll want to note in the changelog that database_name is changing to auth_database_name as of 0.4.0 so users can change their terraform configuration to match.
Added:
x509_type
attribute was added in the resource and the data source in the database resource, this allows us to configure it with the future X509 resource.x509_type
is enabled the database name must be$external
and to be able to Get or Delete it we need to pass the database name to avoid errors.