controller

package
v0.0.0-...-9022789 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

Controller knows how to reconcile kubelet upgrades to match the in-cluster states with the desired states.

func New

func New(
	k8sClientsets kubernetes.Interface,
	k8sInformers k8sinformers.SharedInformerFactory,
	clusteropClientsets clusteropclientsetsv1alpha1.Interface,
	clusteropInformers clusteropinformers.SharedInformerFactory,
) *Controller

New returns a new instance of the controller.

func (*Controller) Reconcile

func (c *Controller) Reconcile(stop <-chan struct{}) error

Reconcile will continuously work towards reconciling the states of all the KubeletUpgrade objects. It starts the informers and sync their caches. It will block until stop is closed.

type Result

type Result struct {
	Err   error
	Retry bool
}

Result encapsulates the result of running the Exec function of a task.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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