apireconciler

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ControllerName = "kcp-virtual-syncer-api-reconciler"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type APIReconciler

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

APIReconciler is a controller watching APIExports, APIResourceSchemas and SyncTargets, and updates the API definitions driving the virtual workspace.

func NewAPIReconciler

func NewAPIReconciler(
	kcpClusterClient kcpclient.ClusterInterface,
	syncTargetInformer workloadinformers.SyncTargetInformer,
	apiResourceSchemaInformer apisinformers.APIResourceSchemaInformer,
	apiExportInformer apisinformers.APIExportInformer,
	createAPIDefinition CreateAPIDefinitionFunc,
) (*APIReconciler, error)

func (*APIReconciler) GetAPIDefinitionSet

func (*APIReconciler) ShutDown

func (c *APIReconciler) ShutDown()

func (*APIReconciler) Start

func (c *APIReconciler) Start(ctx context.Context)

type CreateAPIDefinitionFunc

type CreateAPIDefinitionFunc func(syncTargetWorkspace logicalcluster.Name, syncTargetName string, apiResourceSchema *apisv1alpha1.APIResourceSchema, version string, identityHash string) (apidefinition.APIDefinition, error)

Jump to

Keyboard shortcuts

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