-
Notifications
You must be signed in to change notification settings - Fork 13
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
Fix ClusterRole & ClusterRoleBinding hotreload #92
Conversation
… doesn't exists in the same namespace
… doesn't exists in the same namespace
Signed-off-by: Victor Godoy Hernández <[email protected]>
Signed-off-by: Victor Godoy Hernández <[email protected]>
Signed-off-by: Victor Godoy Hernández <[email protected]>
Signed-off-by: Victor Godoy Hernández <[email protected]>
Signed-off-by: Victor Godoy Hernández <[email protected]>
Signed-off-by: Victor Godoy Hernández <[email protected]>
Signed-off-by: Victor Godoy Hernández <[email protected]>
Signed-off-by: Victor Godoy Hernández <[email protected]>
Signed-off-by: Victor Godoy Hernández <[email protected]>
@vigohe Thanks for contributions. I will check it soon. |
Nice! Do you know a better way to delete as cascade all resources related to a |
@vigohe I think you can set the ownerreference of rolebindings to the proper role or clusterrole. In this case when you delete the clusterrole or role, the rolebindings will be deleted. This doesn't work in the case of clusterscope resources if the K8s version is 1.21 or above. |
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.
@vigohe Using labels works in the case of cluster-scoped resources as well (for example clusterrolebindings). I think it's an universal solution . Thanks.
Please resolve conflicts otherwise LGTM.
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 resolve conflicts otherwise LGTM.
Did I fix it ? |
@vigohe Some conflicts are found. Please resolve them. |
Don't see any conflicts |
@vigohe . I can squash and merge instead of rebasing. |
What's in this PR?
fixes #91 and deletes ClusterRoles when CustomGroup name is not present at the config
Why?
Checklist