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
Click to show internal directories.
Click to hide internal directories.