controllers

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2020 License: Apache-2.0 Imports: 38 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

func TagsChanged added in v0.4.3

func TagsChanged(annotation map[string]interface{}, src map[string]string) (bool, map[string]string, map[string]string, map[string]interface{})

TagsChanged determines which tags to delete and which to add.

Types

type AzureClusterReconciler

type AzureClusterReconciler struct {
	client.Client
	Log              logr.Logger
	Recorder         record.EventRecorder
	ReconcileTimeout time.Duration
}

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
	ReconcileTimeout time.Duration
}

AzureMachineReconciler reconciles a AzureMachine object

func (*AzureMachineReconciler) AzureClusterToAzureMachines

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

AzureClusterToAzureMachines 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