initialization

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: Apache-2.0 Imports: 35 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func GenerateAPIBindingName added in v0.28.0

func GenerateAPIBindingName(clusterName logicalcluster.Name, exportPath, exportName string) string

func InstallIndexers added in v0.25.0

func InstallIndexers(logicalClusterInformer, globalLogicalClusterInformer corev1alpha1informers.LogicalClusterClusterInformer, 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,
	logicalClustersInformer corev1alpha1informers.LogicalClusterClusterInformer,
	globalLogicalClustersInformer corev1alpha1informers.LogicalClusterClusterInformer,
	workspaceTypeInformer, globalWorkspaceTypeInformer tenancyv1alpha1informers.WorkspaceTypeClusterInformer,
	apiBindingsInformer apisv1alpha2informers.APIBindingClusterInformer,
	apiExportsInformer, globalAPIExportsInformer apisv1alpha2informers.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