Skip to content

Commit

Permalink
Fix APIVersion in OwnerReferences to ClusterResourceSets
Browse files Browse the repository at this point in the history
  • Loading branch information
chrischdi committed Aug 5, 2022
1 parent 0b368a4 commit 223bddd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func ensureOwnerRefs(clusterResourceSetBinding *addonsv1.ClusterResourceSetBindi
})
ownerRefs = util.EnsureOwnerRef(ownerRefs,
metav1.OwnerReference{
APIVersion: clusterResourceSet.GroupVersionKind().String(),
APIVersion: clusterResourceSet.GroupVersionKind().GroupVersion().String(),
Kind: clusterResourceSet.GroupVersionKind().Kind,
Name: clusterResourceSet.Name,
UID: clusterResourceSet.UID,
Expand Down

0 comments on commit 223bddd

Please sign in to comment.