-
Notifications
You must be signed in to change notification settings - Fork 43
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
CSS-9769 Generic access resource crud #552
CSS-9769 Generic access resource crud #552
Conversation
d0a93a9
to
6ffb42d
Compare
08b31c9
to
8508652
Compare
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.
Please update the commit message with more detail. You're doing more in this commit than implementing CRUD methods for the provider.
8508652
to
46e2847
Compare
- Modify the jaasAccessModelResourceModel struct to avoid embedding - Embedding doesn't work with Terraform's reflection. - Modify the resourceInfo interface to perform plan get/saves on the parent object.
11ff056
to
615f980
Compare
- Remove globals for isJAAS placing them on the sharedClient struct instead. - Improved error messages when Juju client calls fail. - Use template strings in tests.
615f980
to
03f53fb
Compare
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
@hmlanigan Can you please merge this PR, all tests are passing. |
#571 ## Description This PR builds on top of #552. In this PR we implement imports for any resources built on top of the JAAS generic access resource. Imports are enabled via a string of the format `resourceTag:accessLevel`. The concrete resource must also implement an import "hint" to guide users, e.g. the JAAS model access resource hints that the import string must be something like "model-UUID:writer". Fixes: [CSS-10237](https://warthogs.atlassian.net/browse/CSS-10237) ## Type of change - Change existing resource (implement imports) [CSS-10237]: https://warthogs.atlassian.net/browse/CSS-10237?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
Description
This PR builds on #561, review from the second commit to skip the changes from that PR.This PR implements CRUD methods for the generic resource access object.
The generic resource access object constructs tuples based on the user defined set of users/groups/service-accounts that should have a level of access to a particular resource.
Type of change
Additional notes
Addresses CSS-9769