@@ -164,7 +164,7 @@ func (n *node) captureAdditionalInformation(obj *unstructured.Unstructured) erro
164
164
}
165
165
166
166
// If the node is a ClusterResourceSetBinding capture the name of the cluster it is referencing to.
167
- if n .identity .GroupVersionKind ().GroupKind () == clusterv1 .GroupVersion .WithKind ("ClusterResourceSetBinding" ).GroupKind () {
167
+ if n .identity .GroupVersionKind ().GroupKind () == addonsv1 .GroupVersion .WithKind ("ClusterResourceSetBinding" ).GroupKind () {
168
168
binding := & addonsv1.ClusterResourceSetBinding {}
169
169
if err := localScheme .Convert (obj , binding , nil ); err != nil {
170
170
return errors .Wrapf (err , "failed to convert object %s to ClusterResourceSetBinding" , n .identityStr ())
@@ -368,7 +368,7 @@ func (o *objectGraph) getDiscoveryTypes(ctx context.Context) error {
368
368
if crd .Spec .Group == clusterv1 .GroupVersion .Group && crd .Spec .Names .Kind == "ClusterClass" {
369
369
forceMoveHierarchy = true
370
370
}
371
- if crd .Spec .Group == clusterv1 .GroupVersion .Group && crd .Spec .Names .Kind == "ClusterResourceSet" {
371
+ if crd .Spec .Group == addonsv1 .GroupVersion .Group && crd .Spec .Names .Kind == "ClusterResourceSet" {
372
372
forceMoveHierarchy = true
373
373
}
374
374
if _ , ok := crd .Labels [clusterctlv1 .ClusterctlMoveHierarchyLabel ]; ok {
@@ -637,7 +637,7 @@ func (o *objectGraph) getClusterClasses() []*node {
637
637
func (o * objectGraph ) getClusterResourceSetBinding () []* node {
638
638
crs := []* node {}
639
639
for _ , node := range o .uidToNode {
640
- if node .identity .GroupVersionKind ().GroupKind () == clusterv1 .GroupVersion .WithKind ("ClusterResourceSetBinding" ).GroupKind () {
640
+ if node .identity .GroupVersionKind ().GroupKind () == addonsv1 .GroupVersion .WithKind ("ClusterResourceSetBinding" ).GroupKind () {
641
641
crs = append (crs , node )
642
642
}
643
643
}
@@ -668,7 +668,7 @@ func (o *objectGraph) getNodes() []*node {
668
668
func (o * objectGraph ) getCRSs () []* node {
669
669
clusters := []* node {}
670
670
for _ , node := range o .uidToNode {
671
- if node .identity .GroupVersionKind ().GroupKind () == clusterv1 .GroupVersion .WithKind ("ClusterResourceSet" ).GroupKind () {
671
+ if node .identity .GroupVersionKind ().GroupKind () == addonsv1 .GroupVersion .WithKind ("ClusterResourceSet" ).GroupKind () {
672
672
clusters = append (clusters , node )
673
673
}
674
674
}
0 commit comments