-
Notifications
You must be signed in to change notification settings - Fork 378
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
IAMUserPolicyAttachment #196
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.
A few comments, only reviewed parts that are new on top of #194
|
||
// UserName presents the name of the IAM user. | ||
// +optional | ||
UserName string `json:"userName,omitempty"` |
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.
This should be pointer type I believe.
"github.com/crossplane/crossplane-runtime/pkg/resource" | ||
) | ||
|
||
// UserNameReferencerForUserPolicyAttachment is an attribute referencer that retrieves Name from a referenced User |
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.
Referencer structure will need to be revised per pattern in #198
c2e7613
to
0f42052
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 pending updates to #194.
apis/identity/v1alpha1/register.go
Outdated
UserPolicyAttachmentKind = reflect.TypeOf(IAMUserPolicyAttachment{}).Name() | ||
UserPolicyAttachmentGroupKind = schema.GroupKind{Group: Group, Kind: UserPolicyAttachmentKind}.String() | ||
UserPolicyAttachmentKindAPIVersion = UserPolicyAttachmentKind + "." + SchemeGroupVersion.String() | ||
UserPolicyAttachmentGroupVersionKind = SchemeGroupVersion.WithKind(UserPolicyAttachmentKind) |
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.
These should be IAMUserPolicyAttachment<X>
to match the name of the struct.
0f42052
to
0173be6
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, but guessing it will need rebase after IAMUser
PR is merged
@sahil-lakhwani Could you please rebase this on master now that #194 is merged. Once you do so I'll merge this PR. |
Signed-off-by: sahil-lakhwani <sahilakhwani@gmail.com>
…tachment' Signed-off-by: sahil-lakhwani <sahilakhwani@gmail.com>
Signed-off-by: sahil-lakhwani <sahilakhwani@gmail.com>
Signed-off-by: sahil-lakhwani <sahilakhwani@gmail.com>
0173be6
to
4be7d8f
Compare
@negz I have update this branch with master |
IAMUserPolicyAttachment
IAMUserPolicyAttachment
Description of your changes
Adds
UserPolicyAttachment
resource, which helps to attach IAM managed policy to an IAM user.This depends on (and is a checkout from) #194 and should not be merged before that
Example:
examples/iam/userpolicyattachment.yaml
Checklist
I have:
make reviewable
to ensure this PR is ready for review.app.yaml
to include any new role permissions.