controllers

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AzureClusterToAzureMachinePoolsMapper added in v0.4.6

func AzureClusterToAzureMachinePoolsMapper(c client.Client, scheme *runtime.Scheme, log logr.Logger) (handler.Mapper, error)

AzureClusterToAzureMachinePoolsMapper creates a mapping handler to transform AzureClusters into AzureMachinePools. The transform requires AzureCluster to map to the owning Cluster, then from the Cluster, collect the MachinePools belonging to the cluster, then finally projecting the infrastructure reference to the AzureMachinePool.

func AzureManagedClusterToAzureManagedControlPlaneMapper added in v0.4.6

func AzureManagedClusterToAzureManagedControlPlaneMapper(c client.Client, log logr.Logger) (handler.Mapper, error)

AzureManagedClusterToAzureManagedControlPlaneMapper creates a mapping handler to transform AzureManagedClusters into AzureManagedControlPlane. The transform requires AzureManagedCluster to map to the owning Cluster, then from the Cluster, collect the control plane infrastructure reference.

func AzureManagedClusterToAzureManagedMachinePoolsMapper added in v0.4.6

func AzureManagedClusterToAzureManagedMachinePoolsMapper(c client.Client, scheme *runtime.Scheme, log logr.Logger) (handler.Mapper, error)

AzureManagedClusterToAzureManagedMachinePoolsMapper creates a mapping handler to transform AzureManagedClusters into AzureManagedMachinePools. The transform requires AzureManagedCluster to map to the owning Cluster, then from the Cluster, collect the MachinePools belonging to the cluster, then finally projecting the infrastructure reference to the AzureManagedMachinePools.

func MachinePoolToInfrastructureMapFunc added in v0.4.6

func MachinePoolToInfrastructureMapFunc(gvk schema.GroupVersionKind) handler.ToRequestsFunc

MachinePoolToInfrastructureMapFunc returns a handler.ToRequestsFunc that watches for MachinePool events and returns reconciliation requests for an infrastructure provider object.

Types

type AzureMachinePoolReconciler

type AzureMachinePoolReconciler struct {
	client.Client
	Log              logr.Logger
	Scheme           *runtime.Scheme
	Recorder         record.EventRecorder
	ReconcileTimeout time.Duration
}

AzureMachinePoolReconciler reconciles a AzureMachinePool object

func (*AzureMachinePoolReconciler) Annotation

func (r *AzureMachinePoolReconciler) Annotation(rw annotationReaderWriter, annotation string) string

Fetches the specific machine annotation.

func (*AzureMachinePoolReconciler) AnnotationJSON

func (r *AzureMachinePoolReconciler) AnnotationJSON(rw annotationReaderWriter, annotation string) (map[string]interface{}, error)

Returns a map[string]interface from a JSON annotation. This method gets the given `annotation` from an `annotationReaderWriter` and unmarshalls it from a JSON string into a `map[string]interface{}`.

func (*AzureMachinePoolReconciler) Reconcile

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

func (*AzureMachinePoolReconciler) SetupWithManager

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

type AzureManagedClusterReconciler added in v0.4.4

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

AzureManagedClusterReconciler reconciles a AzureManagedCluster object

func (*AzureManagedClusterReconciler) Reconcile added in v0.4.4

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

func (*AzureManagedClusterReconciler) SetupWithManager added in v0.4.4

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

type AzureManagedControlPlaneReconciler added in v0.4.4

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

AzureManagedControlPlaneReconciler reconciles a AzureManagedControlPlane object

func (*AzureManagedControlPlaneReconciler) Reconcile added in v0.4.4

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

func (*AzureManagedControlPlaneReconciler) SetupWithManager added in v0.4.4

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

type AzureManagedMachinePoolReconciler added in v0.4.4

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

AzureManagedMachinePoolReconciler reconciles a AzureManagedMachinePool object

func (*AzureManagedMachinePoolReconciler) Reconcile added in v0.4.4

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

func (*AzureManagedMachinePoolReconciler) SetupWithManager added in v0.4.4

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

type NodeLister added in v0.4.4

type NodeLister interface {
	ListInstances(context.Context, string, string) ([]compute.VirtualMachineScaleSetVM, error)
	List(context.Context, string) ([]compute.VirtualMachineScaleSet, error)
}

NodeLister is a service interface for returning generic lists.

Jump to

Keyboard shortcuts

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