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/