-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add handler for project creates #25
Conversation
thisisnotashwin
commented
Mar 11, 2020
- This add a mutating webhook that adds the user from the request as a member of the project if a project is created with no entries in access
- This add a mutating webhook that adds the user from the request as a member of the project if a project is created with no entries in access Signed-off-by: Ashwin Venkatesh <avenkatesh@pivotal.io>
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.
Cheers for the PR. Overall it looks good, with a few fairly minor exceptions, the only one that I think really needs to be addressed is considering how to handle ServiceAccounts
.
Signed-off-by: Danny Joyce <djoyce@pivotal.io>
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 is all looks good to me, apologies for missing this in the first review but it suddenly occurred to me that there isn't any acceptance level testing, it would be great to have something like https://github.com/pivotal/projects-operator/blob/bafb5279c3387e1698fddc281876549355e9d6e2/acceptance/project_list_test.go#L64-L81
The acceptance test just checks that the access list has one user mainly because I have no way of knowing the admin users name. |
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.
Heya, that all looks good to me, apologies for the delay in getting back to you and the false start where I missed the acceptance test's absence.