Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSyncTargetGVRSource ¶ added in v0.11.0
func NewSyncTargetGVRSource( syncerLogger logr.Logger, downstreamSyncerDiscoveryClient discovery.DiscoveryInterface, upstreamDynamicClusterClient kcpdynamic.ClusterInterface, downstreamDynamicClient dynamic.Interface, downstreamKubeClient kubernetes.Interface, syncTargetClient workloadv1alpha1typed.SyncTargetInterface, syncTargetInformer workloadv1alpha1informers.SyncTargetInformer, syncTargetName string, syncTargetClusterName logicalcluster.Name, syncTargetUID types.UID, ) (*controller, error)
NewSyncTargetGVRSource returns a controller watching a workloadv1alpha1.SyncTarget and maintaining, from the information contained in the SyncTarget status, a list of the GVRs that should be watched and synced.
It implements the informer.GVRSource interface to provide the GVRs to sync, as well as a way to subscribe to changes in the GVR list. It will be used to feed the various informer.DiscoveringDynamicSharedInformerFactory instances (one for downstream and 2 for upstream, for syncing and upsyncing).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.