synctargetexports

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

View Source
const (
	ControllerName = "tmc-synctarget-export-controller"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitFunc

type CommitFunc = func(context.Context, *Resource, *Resource) error

type Controller

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

func NewController

func NewController(
	kcpClusterClient kcpclientset.ClusterInterface,
	tmcClusterClient tmcclientset.ClusterInterface,
	syncTargetInformer workloadv1alpha1informers.SyncTargetClusterInformer,
	apiExportInformer, globalAPIExportInformer apisv1alpha1informers.APIExportClusterInformer,
	apiResourceSchemaInformer, globalAPIResourceSchemaInformer apisv1alpha1informers.APIResourceSchemaClusterInformer,
	apiResourceImportInformer apiresourcev1alpha1informers.APIResourceImportClusterInformer,
) (*Controller, error)

NewController returns a controller which update syncedResource in status based on supportedExports in spec of a syncTarget.

func (*Controller) Start

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

Start starts the controller workers.

type SyncTarget

type SyncTarget = workloadv1alpha1.SyncTarget

type SyncTargetSpec

type SyncTargetSpec = workloadv1alpha1.SyncTargetSpec

type SyncTargetStatus

type SyncTargetStatus = workloadv1alpha1.SyncTargetStatus

Jump to

Keyboard shortcuts

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