Skip to content

Commit 5dcb8e0

Browse files
authored
Merge pull request #7022 from chrischdi/pr-fix-crs-ownerref
🐛 Fix APIVersion in OwnerReferences to ClusterResourceSets
2 parents 43e7a08 + 223bddd commit 5dcb8e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exp/addons/internal/controllers/clusterresourceset_helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ func ensureOwnerRefs(clusterResourceSetBinding *addonsv1.ClusterResourceSetBindi
150150
})
151151
ownerRefs = util.EnsureOwnerRef(ownerRefs,
152152
metav1.OwnerReference{
153-
APIVersion: clusterResourceSet.GroupVersionKind().String(),
153+
APIVersion: clusterResourceSet.GroupVersionKind().GroupVersion().String(),
154154
Kind: clusterResourceSet.GroupVersionKind().Kind,
155155
Name: clusterResourceSet.Name,
156156
UID: clusterResourceSet.UID,

0 commit comments

Comments
 (0)