v1alpha2

package
v1.8.6 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AttributeFirstClassDiskUUID = "diskUUID"
)

Variables

This section is empty.

Functions

func AddToManager

func AddToManager(ctx *context.ControllerManagerContext, mgr manager.Manager) error

AddToManager adds this package's controller to the provided manager.

Types

type Reconciler

type Reconciler struct {
	client.Client
	Context goctx.Context

	VMProvider vmprovider.VirtualMachineProviderInterfaceA2

	// The instance storage PVC cache and watch are deferred until actually required.
	GetInstanceStoragePVCClient func() (client.Reader, error)
	// contains filtered or unexported fields
}

func NewReconciler

func NewReconciler(
	ctx goctx.Context,
	client client.Client,
	logger logr.Logger,
	recorder record.Recorder,
	vmProvider vmprovider.VirtualMachineProviderInterfaceA2) *Reconciler

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx goctx.Context, request ctrl.Request) (_ ctrl.Result, reterr error)

Reconcile reconciles a VirtualMachine object and processes the volumes for attach/detach. Longer term, this should be folded back into the VirtualMachine controller, but exists as a separate controller to ensure volume attachments are processed promptly, since the VM controller can block for a long time, consuming all of the workers.

func (*Reconciler) ReconcileDelete

func (r *Reconciler) ReconcileDelete(_ *context.VolumeContextA2) error

func (*Reconciler) ReconcileNormal

func (r *Reconciler) ReconcileNormal(ctx *context.VolumeContextA2) error

Jump to

Keyboard shortcuts

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