image

package
v0.0.0-...-ba90866 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNodes

func GetNodes(ctx context.Context, c client.Client, selector labels.Selector) []corev1.Node

func GetNodesByImageStatus

func GetNodesByImageStatus(ctx context.Context, c client.Client, label string, status string) ([]corev1.Node, error)

func SetupWithManager

func SetupWithManager(mgr ctrl.Manager) error

Types

type Controller

type Controller struct {
	client.Client
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
}

func (Controller) Reconcile

func (c Controller) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is the main controller loop for the image controller.

type ControllerErrors

type ControllerErrors string
const (
	ErrNodesNotEmpty ControllerErrors = "nodes have not removed all images"
)

func (ControllerErrors) Error

func (e ControllerErrors) Error() string

type ObservedState

type ObservedState struct {
	// contains filtered or unexported fields
}

func NewObservedState

func NewObservedState() *ObservedState

type StateObserver

type StateObserver struct {
	Client  client.Client
	Request ctrl.Request
}

Jump to

Keyboard shortcuts

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