Documentation ¶
Index ¶
- Constants
- Variables
- func AddToManager(mgr manager.Manager) error
- func AddToManagerWithOptions(mgr manager.Manager, options AddOptions) error
- func NewActuator(client client.Client, namespace string, logger logr.Logger) controller.Actuator
- func NewReadyUnreachableChangedPredicate(logger logr.Logger) predicate.Predicate
- type AddOptions
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 ¶
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 ¶
NewActuator creates a new Actuator.
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.
Click to show internal directories.
Click to hide internal directories.