controllers

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 45 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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          orievent.Source[*ori.Machine]
	VolumeEvents           orievent.Source[*ori.Volume]
	NetworkInterfaceEvents orievent.Source[*ori.NetworkInterface]
}

func (*MachineAnnotatorReconciler) Reconcile

func (*MachineAnnotatorReconciler) SetupWithManager

func (r *MachineAnnotatorReconciler) 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        orimachine.RuntimeService
	MachineRuntimeName    string
	MachineRuntimeVersion string

	MachineClassMapper mcm.MachineClassMapper

	MachinePoolName 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