-
Notifications
You must be signed in to change notification settings - Fork 546
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
Garbage Collection for OperatorGroup RBAC #795
Garbage Collection for OperatorGroup RBAC #795
Conversation
/retest I think it's your call if you want to wait for #696 or not |
/hold holding until master is open for 4.2 😢 |
/hold cancel |
"namespace": op.GetNamespace(), | ||
}) | ||
|
||
clusterRoles, err := a.lister.RbacV1().ClusterRoleLister().List(labels.SelectorFromSet(ownerutil.OwnerLabel(op, "OperatorGroup"))) |
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 use the v1.OperatorGroupKind constant.
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alecmerdler, jpeeler The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Description
Use
OwnerLabels
to garbage collect theClusterRoles
associated with anOperatorGroup
after it is deleted.Addresses https://jira.coreos.com/browse/OLM-974