Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PreStartHook ¶
type PreStartHook interface {
// Run executes the hook's logic. If an error is returned, the controller
// startup will be aborted.
Run(ctx context.Context) error
// Name returns a human-readable name for the hook, used in logging.
Name() string
}
PreStartHook defines a hook that should be run before the controller starts working. Pre-start hooks are used for validation, initialization, and safety checks that must pass before the controller begins processing resources.
Click to show internal directories.
Click to hide internal directories.