Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter adapts a controllerruntime.Builder into the Builder interface
func (*Adapter) Complete ¶
func (a *Adapter) Complete(r Reconciler) error
type Builder ¶
type Builder interface {
// Complete builds a builder by registering the Reconciler with the manager
Complete(Reconciler) error
}
Builder is a struct, that when complete, registers the passed reconciler with the manager stored insider of the builder. Typed reference implementations, see controllerruntime.Builder
func Adapt ¶
func Adapt(builder *controllerruntime.Builder) Builder
type Controller ¶
type Controller interface {
Reconciler
// Builder returns a Builder registered with the manager that can be wrapped
// with other Builders and completed later to complete registration to the manager
Builder(context.Context, manager.Manager) Builder
}
Controller defines a controller that can be registered with controller-runtime
func Typed ¶
func Typed[T client.Object](kubeClient client.Client, typedController TypedController[T]) Controller
type Reconciler ¶
type Reconciler interface {
reconcile.Reconciler
// Name is the name of the Reconciler for metrics and logging
Name() string
}
type Singleton ¶
type Singleton struct {
Reconciler
// contains filtered or unexported fields
}
func (*Singleton) NeedLeaderElection ¶
type SingletonBuilder ¶
type SingletonBuilder struct {
// contains filtered or unexported fields
}
func NewSingletonManagedBy ¶
func NewSingletonManagedBy(m manager.Manager) SingletonBuilder
func (SingletonBuilder) Complete ¶
func (b SingletonBuilder) Complete(r Reconciler) error
Click to show internal directories.
Click to hide internal directories.