@@ -40,7 +40,7 @@ import (
4040
4141 brokerv1alpha1 "github.com/platform-mesh/resource-broker/api/broker/v1alpha1"
4242 "github.com/platform-mesh/resource-broker/pkg/kubernetes"
43- brokerutils "github.com/platform-mesh/resource-broker/pkg/utils "
43+ "github.com/platform-mesh/resource-broker/pkg/sync "
4444)
4545
4646// Options are the options for the generic reconciler.
@@ -681,7 +681,7 @@ func (gr *genericReconciler) syncResource(ctx context.Context, providerName stri
681681 // TODO send conditions back to consumer cluster
682682 // TODO there should be two informers triggering this - one
683683 // for consumer and one for provider
684- if cond , err := brokerutils .CopyResource (
684+ if cond , err := sync .CopyResource (
685685 ctx ,
686686 gr .gvk ,
687687 gr .req .NamespacedName ,
@@ -719,7 +719,7 @@ func (gr *genericReconciler) syncRelatedResources(ctx context.Context, providerN
719719 // TODO handle resource drift when a related resource is removed in
720720 // the provider it needs to be removed in the consumer
721721 // maybe just a finalizer on the resources in the provider?
722- relatedResources , err := brokerutils .CollectRelatedResources (ctx , providerCluster .GetClient (), gr .gvk , gr .req .NamespacedName )
722+ relatedResources , err := sync .CollectRelatedResources (ctx , providerCluster .GetClient (), gr .gvk , gr .req .NamespacedName )
723723 if err != nil {
724724 return fmt .Errorf ("failed to collect related resources from provider cluster %q: %w" , providerName , err )
725725 }
@@ -763,7 +763,7 @@ func (gr *genericReconciler) syncRelatedResource(ctx context.Context, providerCl
763763 }
764764
765765 // TODO conditions
766- _ , err := brokerutils .CopyResource (
766+ _ , err := sync .CopyResource (
767767 ctx ,
768768 relatedResource .SchemaGVK (),
769769 types.NamespacedName {
0 commit comments