Skip to content

Commit

Permalink
Match owner UID label
Browse files Browse the repository at this point in the history
Change the match labels to match on the owner UID label.

Signed-off-by: Matt Richerson <[email protected]>
  • Loading branch information
matthew-richerson committed Oct 28, 2024
1 parent 9062a91 commit 6e4b195
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/v1alpha2/owner_labels.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ func MatchingOwner(owner metav1.Object) client.MatchingLabels {
OwnerKindLabel: reflect.Indirect(reflect.ValueOf(owner)).Type().Name(),
OwnerNameLabel: owner.GetName(),
OwnerNamespaceLabel: owner.GetNamespace(),
OwnerUidLabel: string(owner.GetUID()),
})
}

Expand Down

0 comments on commit 6e4b195

Please sign in to comment.