nodecontroller

package
v0.0.0-...-3e42cda Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

Types

type Config

type Config struct {
	Cluster             v1alpha1.KVMConfig
	ManagementK8sClient client.Client
	WorkloadK8sClient   k8sclient.Interface
	Logger              micrologger.Logger

	Name     string
	Selector labels.Selector
}

type Controller

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

This controller is based on the operatorkit controller but cuts out metrics collectors, Sentry, and other undesirable features for a dynamic workload cluster controller.

func New

func New(config Config) (*Controller, error)

New creates a new configured workload cluster node controller.

func (*Controller) Boot

func (c *Controller) Boot() error

func (*Controller) Equal

func (c *Controller) Equal(other *Controller) bool

Equal returns true when the given controllers are equal as it relates to watching the workload cluster Kubernetes APIs.

func (*Controller) LastReconciled

func (c *Controller) LastReconciled() time.Time

func (*Controller) Reconcile

func (c *Controller) Reconcile(req reconcile.Request) (reconcile.Result, error)

func (*Controller) Stop

func (c *Controller) Stop()

Jump to

Keyboard shortcuts

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