initialization

package
v0.26.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ControllerName = "kcp-apibinder-initializer"
)

Variables

This section is empty.

Functions

func InstallIndexers added in v0.25.0

func InstallIndexers(workspaceTypeInformer, globalWorkspaceTypeInformer tenancyv1alpha1informers.WorkspaceTypeClusterInformer)

InstallIndexers adds the additional indexers that this controller requires to the informers.

Types

type APIBinder

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

APIBinder is a controller which instantiates APIBindings and waits for them to be fully bound in new Workspaces.

func NewAPIBinder

func NewAPIBinder(
	kcpClusterClient kcpclientset.ClusterInterface,
	logicalClusterInformer corev1alpha1informers.LogicalClusterClusterInformer,
	workspaceTypeInformer, globalWorkspaceTypeInformer tenancyv1alpha1informers.WorkspaceTypeClusterInformer,
	apiBindingsInformer apisv1alpha1informers.APIBindingClusterInformer,
	apiExportsInformer, globalAPIExportsInformer apisv1alpha1informers.APIExportClusterInformer,
) (*APIBinder, error)

NewAPIBinder returns a new controller which instantiates APIBindings and waits for them to be fully bound in new Workspaces.

func (*APIBinder) ShutDown

func (b *APIBinder) ShutDown()

func (*APIBinder) Start

func (b *APIBinder) Start(ctx context.Context, numThreads int)

Jump to

Keyboard shortcuts

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