refine comments

Signed-off-by: Roland.Ma <rolandma@yunify.com>
This commit is contained in:
Roland.Ma
2021-04-01 03:15:14 +00:00
parent 60f1f5240b
commit 8e1aa7848d

View File

@@ -146,7 +146,7 @@ func (c *Controller) reconcile(key string) error {
}
if group.Labels != nil {
// Set OwnerReferences when the group has a parent. And it's owned by kubefed
// Set OwnerReferences when the group has a parent. And it's not owned by kubefed
if group.Labels[constants.KubefedManagedLabel] != "true" {
if parent, ok := group.Labels[iam1alpha2.GroupParent]; ok && !k8sutil.IsControlledBy(group.OwnerReferences, "Group", parent) {
if g == nil {