resourcesync

package
v0.11.0-alpha.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2023 License: Apache-2.0 Imports: 36 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL