apireconciler

package
v0.32.2 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ControllerName = "kcp-virtual-replication-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 and APIResourceSchemas, and updates the API definitions driving the virtual workspace.

func NewAPIReconciler

func NewAPIReconciler(
	localKcpInformers kcpinformers.SharedInformerFactory,
	globalKcpInformers kcpinformers.SharedInformerFactory,
	createAPIDefinition CreateAPIDefinitionFunc,
) (*APIReconciler, error)

NewAPIReconciler returns a new controller which reconciles APIExport resources, keeping the APIDefinition for it up-to-date.

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(apiResourceSchema *apisv1alpha1.APIResourceSchema, cachedResource *cachev1alpha1.CachedResource, export *apisv1alpha2.APIExport) (apidefinition.APIDefinition, error)

Jump to

Keyboard shortcuts

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