watch

package
v1.15.3-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package watch includes a RestartableManager for dynamically watching resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerBuilder

type ControllerBuilder interface {
	// StartControllers starts the relevant controllers using the RestartableManager to manage them.
	StartControllers(mgr manager.Manager, gvks map[schema.GroupVersionKind]bool, mgrInitTime metav1.Time) error
}

ControllerBuilder builds controllers. It is managed by RestartableManager, which is managed by a higher-level controller.

type RestartableManager

type RestartableManager interface {
	// Restart restarts the Manager and all the controllers it manages to watch the given GroupVersionKinds.
	// Returns if a restart actually happened and if there were any errors while doing it.
	Restart(gvks map[schema.GroupVersionKind]bool, force bool) (bool, error)
}

RestartableManager is a controller manager that can be restarted based on the resources it syncs.

func NewManager

func NewManager(mgr manager.Manager, builder ControllerBuilder) (RestartableManager, error)

NewManager returns a new RestartableManager

Jump to

Keyboard shortcuts

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