-
Notifications
You must be signed in to change notification settings - Fork 41
Add support for controlling Users in IAM Groups #167
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
base: main
Are you sure you want to change the base?
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: naclonts The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @naclonts. Thanks for your PR. I'm waiting for a aws-controllers-k8s member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
knottnt
left a comment
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.
Thinking about usability of this feature it might be better to add a list of groups to the User resource instead. A group can have hundreds to thousands of users in normal use, whereas a user would normally have a much more limited number number of groups.
| # In order to support adding zero or more users to a group, we use | ||
| # custom update code that calls the AddUserToGroup and RemoveUserFromGroup | ||
| # APIs to manage the set of users in this Group. | ||
| Users: |
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.
Could you add a description for the custom field? The CRD descriptions are used to generate our API reference docs. You should be able to do that in the generator.yaml with the DocumenationConfig.
| - name: controller | ||
| newName: public.ecr.aws/aws-controllers-k8s/iam-controller | ||
| newTag: 1.6.0 | ||
| newTag: 0.0.0-non-release-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.
Could you pull the latest tags from upstream and rebuild.
|
/hold |
Issue #, if available: aws-controllers-k8s/community#2207
Description of changes: Add support for a
Userslist underGroup. The group's IAM users will be added or removed based on the list defined in the CR.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Testing
Added automated e2e tests.
Manual test
YAML file
group_w_users.yaml:Apply:
Verified AWS account has group
cool-peepsthat includes usernclonts.