Documentation
¶
Index ¶
- Constants
- func AddToManager(ctx *pkgctx.ControllerManagerContext, mgr manager.Manager) error
- type Reconciler
- func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)
- func (r *Reconciler) ReconcileDelete(ctx *pkgctx.VirtualMachinePublishRequestContext) (ctrl.Result, error)
- func (r *Reconciler) ReconcileNormal(ctx *pkgctx.VirtualMachinePublishRequestContext) (_ ctrl.Result, reterr error)
Constants ¶
View Source
const ( OVFCaptureTaskDescriptionID = "com.vmware.ovfs.LibraryItem.capture" CloneTaskDescriptionID = "VirtualMachine.clone" ItemParseErrorMessage = "Failed to get the uploaded item ID. This error is unrecoverable." + " Please create a new VirtualMachinePublishRequest to retry VM publishing." // ItemDescriptionRegexString is used to filter the VMPub UID from the content library item description. ItemDescriptionRegexString = "virtualmachinepublishrequest\\.vmoperator\\.vmware\\.com: ([a-z0-9-]*)" )
Variables ¶
This section is empty.
Functions ¶
func AddToManager ¶
func AddToManager(ctx *pkgctx.ControllerManagerContext, mgr manager.Manager) error
AddToManager adds this package's controller to the provided manager.
Types ¶
type Reconciler ¶
type Reconciler struct {
client.Client
Context context.Context
Logger logr.Logger
Recorder record.Recorder
VMProvider providers.VirtualMachineProviderInterface
Metrics *metrics.VMPublishMetrics
// contains filtered or unexported fields
}
Reconciler reconciles a VirtualMachinePublishRequest object.
func NewReconciler ¶
func (*Reconciler) ReconcileDelete ¶
func (r *Reconciler) ReconcileDelete(ctx *pkgctx.VirtualMachinePublishRequestContext) (ctrl.Result, error)
func (*Reconciler) ReconcileNormal ¶
func (r *Reconciler) ReconcileNormal(ctx *pkgctx.VirtualMachinePublishRequestContext) (_ ctrl.Result, reterr error)
Click to show internal directories.
Click to hide internal directories.