controllers

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2020 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultBootstrapTokenTTL default ttl for bootstrap token
	DefaultBootstrapTokenTTL = 10 * time.Minute
)
View Source
const (
	// TagsLastAppliedAnnotation is the key for the machine object annotation
	// which tracks the SecurityGroups that the machine actuator is responsible
	// for. These are the SecurityGroups that have been handled by the
	// AdditionalTags in the Machine Provider Config.
	// See https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
	// for annotation formatting rules.
	TagsLastAppliedAnnotation = "sigs.k8s.io/cluster-api-provider-azure-last-applied-tags"
)

Variables

This section is empty.

Functions

func GetControlPlaneMachines

func GetControlPlaneMachines(machineList *clusterv1.MachineList) []*clusterv1.Machine

GetControlPlaneMachines retrieves all non-deleted control plane nodes from a MachineList

Types

type AzureClusterReconciler

type AzureClusterReconciler struct {
	client.Client
	Log logr.Logger
}

AzureClusterReconciler reconciles a AzureCluster object

func (*AzureClusterReconciler) Reconcile

func (r *AzureClusterReconciler) Reconcile(req ctrl.Request) (_ ctrl.Result, reterr error)

func (*AzureClusterReconciler) SetupWithManager

func (r *AzureClusterReconciler) SetupWithManager(mgr ctrl.Manager, options controller.Options) error

type AzureMachineReconciler

type AzureMachineReconciler struct {
	client.Client
	Log      logr.Logger
	Recorder record.EventRecorder
}

AzureMachineReconciler reconciles a AzureMachine object

func (*AzureMachineReconciler) AzureClusterToAzureMachines

func (r *AzureMachineReconciler) AzureClusterToAzureMachines(o handler.MapObject) []ctrl.Request

AzureClusterToAzureMachine is a handler.ToRequestsFunc to be used to enqueue requests for reconciliation of AzureMachines.

func (*AzureMachineReconciler) Reconcile

func (r *AzureMachineReconciler) Reconcile(req ctrl.Request) (_ ctrl.Result, reterr error)

func (*AzureMachineReconciler) SetupWithManager

func (r *AzureMachineReconciler) SetupWithManager(mgr ctrl.Manager, options controller.Options) error

Jump to

Keyboard shortcuts

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