Skip to content

Commit

Permalink
chore: fix missing labels var
Browse files Browse the repository at this point in the history
  • Loading branch information
pmalek committed Jul 8, 2024
1 parent 185d955 commit 6aaa4e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions controller/controlplane/controller_watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ func objectIsOwnedByControlPlane(obj client.Object, cp *operatorv1beta1.ControlP
return true
}

labels := obj.GetLabels()
if labels[consts.GatewayOperatorManagedByNameLabel] == cp.Name {
if obj.GetNamespace() != "" {
return cp.GetNamespace() == obj.GetNamespace()
Expand Down

0 comments on commit 6aaa4e7

Please sign in to comment.