node

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2020 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TaintKeyUnreachable is the taint key to determine whether a node is unreachable.
	TaintKeyUnreachable = "node.kubernetes.io/unreachable"
	// HostnameLabel is a label to determine the hostname of a node.
	HostnameLabel = "kubernetes.io/hostname"
)
View Source
const (
	ControllerName = "azurenode-controller"
	ActuatorName   = "azurenode-actuator"
	PredicateName  = "azurenode-ready-unreachable-changed-predicate"
	FinalizerName  = "azure.remedy.gardener.cloud/node"
)

Variables

View Source
var (
	// DefaultAddOptions are the default AddOptions for AddToManager.
	DefaultAddOptions = AddOptions{}
)

Functions

func AddToManager

func AddToManager(mgr manager.Manager) error

AddToManager adds a controller with the default AddOptions to the given manager.

func AddToManagerWithOptions

func AddToManagerWithOptions(mgr manager.Manager, options AddOptions) error

AddToManagerWithOptions adds a controller with the given AddOptions to the given manager.

func NewActuator

func NewActuator(client client.Client, namespace string, logger logr.Logger) controller.Actuator

NewActuator creates a new Actuator.

func NewReadyUnreachableChangedPredicate

func NewReadyUnreachableChangedPredicate(logger logr.Logger) predicate.Predicate

Types

type AddOptions

type AddOptions struct {
	// Controller are the controller.Options.
	Controller controller.Options
	// Client is the Kubernetes client for the control cluster.
	Client client.Client
	// Namespace is the namespace for custom resources in the control cluster.
	Namespace string
}

AddOptions are options to apply when adding a controller to a manager.

Jump to

Keyboard shortcuts

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