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: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TaskDescriptionID = "com.vmware.ovfs.LibraryItem.capture"

	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 *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

	Logger     logr.Logger
	Recorder   record.Recorder
	VMProvider vmprovider.VirtualMachineProviderInterfaceA2
	Metrics    *metrics.VMPublishMetrics
	// contains filtered or unexported fields
}

Reconciler reconciles a VirtualMachinePublishRequest object.

func NewReconciler

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

func (*Reconciler) Reconcile

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

func (*Reconciler) ReconcileDelete

func (*Reconciler) ReconcileNormal

func (r *Reconciler) ReconcileNormal(ctx *context.VirtualMachinePublishRequestContextA2) (_ ctrl.Result, reterr error)

Jump to

Keyboard shortcuts

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