subroutine

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: Apache-2.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Initializer added in v0.10.0

type Initializer interface {
	Initialize(ctx context.Context, instance runtimeobject.RuntimeObject) (ctrl.Result, errors.OperatorError)
}

Initializer can be implemented to act as KCP initializer[0], i.e. act on reconciles for LogicalClusters without deletion timestamp. Use together with LifecycleManager.WithInitializer(string) to ensure removal of the terminator on successfull reconciliation.

[0] https://docs.kcp.io/kcp/v0.30/concepts/workspaces/workspace-initialization/

type Subroutine

type Subroutine interface {
	Process(ctx context.Context, instance runtimeobject.RuntimeObject) (ctrl.Result, errors.OperatorError)
	Finalize(ctx context.Context, instance runtimeobject.RuntimeObject) (ctrl.Result, errors.OperatorError)
	GetName() string
	Finalizers(instance runtimeobject.RuntimeObject) []string
}

type Terminator added in v0.10.0

type Terminator interface {
	Terminate(ctx context.Context, instance runtimeobject.RuntimeObject) (ctrl.Result, errors.OperatorError)
}

Terminator can be implemeted to act as KCP terminator[0], i.e. act on reconciles for LogicalClusters with deletion timestamp but without finalizer. Use together with LifecycleManager.WithTerminator(string) to ensure removal of the terminator on successfull reconciliation.

[0] https://docs.kcp.io/kcp/v0.30/concepts/workspaces/workspace-termination/

Jump to

Keyboard shortcuts

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