From 8e1aa7848dae2a4874b79b70f22addd35c815501 Mon Sep 17 00:00:00 2001 From: "Roland.Ma" Date: Thu, 1 Apr 2021 03:15:14 +0000 Subject: [PATCH] refine comments Signed-off-by: Roland.Ma --- pkg/controller/group/group_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller/group/group_controller.go b/pkg/controller/group/group_controller.go index 0a3905891..6a0f35a28 100644 --- a/pkg/controller/group/group_controller.go +++ b/pkg/controller/group/group_controller.go @@ -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 {