Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager is a wrapper of a k8s controller manager.
func (*Manager) GracefulStop ¶
GracefulStop does a graceful stop of the manager.
type Spec ¶
type Spec struct {
// Name of the controller
Name string
// Object being watched.
Object client.Object
// NeedsLeaderElection determines if the controller needs leader election.
NeedsLeaderElection bool
// AddHandler handles object create/update.
AddHandler func(ctx context.Context, object any) error
// DeleteHandler handles object deletes.
DeleteHandler func(ctx context.Context, name types.NamespacedName) error
}
Spec holds everything needed to create a controller.
Click to show internal directories.
Click to hide internal directories.