Skip to content

Commit

Permalink
Update ClusterResourceSetBinding owner references
Browse files Browse the repository at this point in the history
The ClusterResourceSet owner references were being updated due to a
typo. This update was ineffectual, because the ClusterResourceSet object
is not patched after the references are updated.

However, due to a separate bug in RemoveOwnerRef, the
ClusterResourceSetBinding owner references _were_ being updated.
  • Loading branch information
dlipovetsky authored and k8s-infra-cherrypick-robot committed Sep 29, 2022
1 parent cd0d608 commit 595e05b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exp/addons/api/v1beta1/clusterresourcesetbinding_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (c *ClusterResourceSetBinding) DeleteBinding(clusterResourceSet *ClusterRes
break
}
}
clusterResourceSet.OwnerReferences = util.RemoveOwnerRef(c.OwnerReferences, metav1.OwnerReference{
c.OwnerReferences = util.RemoveOwnerRef(c.OwnerReferences, metav1.OwnerReference{
APIVersion: clusterResourceSet.APIVersion,
Kind: clusterResourceSet.Kind,
Name: clusterResourceSet.Name,
Expand Down

0 comments on commit 595e05b

Please sign in to comment.