Skip to content

Commit

Permalink
Merge pull request #7022 from chrischdi/pr-fix-crs-ownerref
Browse files Browse the repository at this point in the history
🐛 Fix APIVersion in OwnerReferences to ClusterResourceSets
  • Loading branch information
k8s-ci-robot authored Aug 5, 2022
2 parents 43e7a08 + 223bddd commit 5dcb8e0
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 5dcb8e0

Please sign in to comment.