Signed-off-by: Roland.Ma <rolandma@yunify.com>
This commit is contained in:
Roland.Ma
2020-11-11 05:19:09 +00:00
parent 5500e93b5f
commit 0a5e04d186
5 changed files with 466 additions and 1 deletions

View File

@@ -227,6 +227,7 @@ func (c *Controller) deleteGroupBindings(group *iam1alpha2.Group) error {
return nil
}
// remove all RoleBindings.
func (c *Controller) deleteRoleBindings(group *iam1alpha2.Group) error {
listOptions := metav1.ListOptions{
LabelSelector: labels.SelectorFromSet(labels.Set{iam1alpha2.GroupReferenceLabel: group.Name}).String(),