controllers

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 52 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindNewIRINetworkInterfaces

func FindNewIRINetworkInterfaces(desiredIRINics, existingIRINics []*iri.NetworkInterface) []*iri.NetworkInterface

func FindNewIRIVolumes

func FindNewIRIVolumes(desiredIRIVolumes, existingIRIVolumes []*iri.Volume) []*iri.Volume

func MachineRunsInMachinePool

func MachineRunsInMachinePool(machine *computev1alpha1.Machine, machinePoolName string) bool

func MachineRunsInMachinePoolPredicate

func MachineRunsInMachinePoolPredicate(machinePoolName string) predicate.Predicate

Types

type MachineAnnotatorReconciler

type MachineAnnotatorReconciler struct {
	client.Client

	MachineEvents irievent.Source[*iri.Machine]
}

func (*MachineAnnotatorReconciler) Reconcile

func (*MachineAnnotatorReconciler) SetupWithManager

func (r *MachineAnnotatorReconciler) SetupWithManager(mgr ctrl.Manager) error

type MachinePoolAnnotatorReconciler

type MachinePoolAnnotatorReconciler struct {
	client.Client

	MachinePoolName    string
	MachineClassMapper mcm.MachineClassMapper
}

func (*MachinePoolAnnotatorReconciler) Reconcile

func (*MachinePoolAnnotatorReconciler) SetupWithManager

func (r *MachinePoolAnnotatorReconciler) SetupWithManager(mgr ctrl.Manager) error

type MachinePoolInit

type MachinePoolInit struct {
	client.Client

	MachinePoolName string
	ProviderID      string

	OnInitialized func(ctx context.Context) error
	OnFailed      func(ctx context.Context, reason error) error
}

func (*MachinePoolInit) SetupWithManager

func (i *MachinePoolInit) SetupWithManager(mgr ctrl.Manager) error

func (*MachinePoolInit) Start

func (i *MachinePoolInit) Start(ctx context.Context) error

type MachinePoolReconciler

type MachinePoolReconciler struct {
	client.Client

	// MachinePoolName is the name of the computev1alpha1.MachinePool to report / update.
	MachinePoolName string
	// Addresses are the addresses the machinepoollet server is available on.
	Addresses []computev1alpha1.MachinePoolAddress
	// Port is the port the machinepoollet server is available on.
	Port int32

	MachineRuntime     machine.RuntimeService
	MachineClassMapper mcm.MachineClassMapper
}

func (*MachinePoolReconciler) Reconcile

func (r *MachinePoolReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*MachinePoolReconciler) SetupWithManager

func (r *MachinePoolReconciler) SetupWithManager(mgr ctrl.Manager) error

type MachineReconciler

type MachineReconciler struct {
	record.EventRecorder
	client.Client

	MachineRuntime        irimachine.RuntimeService
	MachineRuntimeName    string
	MachineRuntimeVersion string

	MachineClassMapper mcm.MachineClassMapper

	MachinePoolName string

	DownwardAPILabels      map[string]string
	DownwardAPIAnnotations map[string]string

	WatchFilterValue string
}

func (*MachineReconciler) Reconcile

func (r *MachineReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*MachineReconciler) SetupWithManager

func (r *MachineReconciler) SetupWithManager(mgr ctrl.Manager) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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