spec

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func NewSpecSyncer

func NewSpecSyncer(syncerLogger logr.Logger, syncTargetClusterName logicalcluster.Name, syncTargetName, syncTargetKey string,
	advancedSchedulingEnabled bool,
	upstreamClient kcpdynamic.ClusterInterface, downstreamClient dynamic.Interface, downstreamKubeClient kubernetes.Interface,
	ddsifForUpstreamSyncer *ddsif.DiscoveringDynamicSharedInformerFactory,
	ddsifForDownstream *ddsif.GenericDiscoveringDynamicSharedInformerFactory[cache.SharedIndexInformer, cache.GenericLister, informers.GenericInformer],
	downstreamNSCleaner shared.Cleaner,
	syncTargetUID types.UID,
	dnsNamespace string,
	dnsProcessor *dns.DNSProcessor,
	dnsImage string,
	mutators ...Mutator) (*Controller, error)

func NewSpecSyncerForDownstream

func NewSpecSyncerForDownstream(syncerLogger logr.Logger, syncTargetClusterName logicalcluster.Name, syncTargetName, syncTargetKey string,
	advancedSchedulingEnabled bool,
	getShardAccess synctarget.GetShardAccessFunc,
	downstreamClient dynamic.Interface, downstreamKubeClient kubernetes.Interface,
	ddsifForDownstream *ddsif.GenericDiscoveringDynamicSharedInformerFactory[cache.SharedIndexInformer, cache.GenericLister, informers.GenericInformer],
	downstreamNSCleaner shared.Cleaner,
	syncTargetUID types.UID,
	dnsNamespace string,
	dnsProcessor *dns.DNSProcessor,
	dnsImage string,
	mutators ...Mutator) (*Controller, error)

func (*Controller) AddToQueue

func (c *Controller) AddToQueue(gvr schema.GroupVersionResource, obj interface{}, logger logr.Logger)

func (*Controller) Start

func (c *Controller) Start(ctx context.Context, numThreads int)

Start starts N worker processes processing work items.

type Mutator

type Mutator interface {
	GVRs() []schema.GroupVersionResource
	Mutate(obj *unstructured.Unstructured) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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