clustercontentlibraryitem

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

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.ContentLibraryItemMetrics
}

Reconciler reconciles an IaaS Image Registry Service's ClusterContentLibraryItem object by creating/updating the corresponding VM-Service's ClusterVirtualMachineImage resource.

func NewReconciler

func NewReconciler(
	ctx context.Context,
	client client.Client,
	logger logr.Logger,
	recorder record.Recorder,
	vmProvider providers.VirtualMachineProviderInterface) *Reconciler

func (*Reconciler) Reconcile

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

func (*Reconciler) ReconcileDelete

func (r *Reconciler) ReconcileDelete(ctx *pkgctx.ClusterContentLibraryItemContext) error

ReconcileDelete reconciles a deletion for a ClusterContentLibraryItem resource.

func (*Reconciler) ReconcileNormal

func (r *Reconciler) ReconcileNormal(ctx *pkgctx.ClusterContentLibraryItemContext) error

ReconcileNormal reconciles a ClusterContentLibraryItem resource by creating or updating the corresponding ClusterVirtualMachineImage resource.

Jump to

Keyboard shortcuts

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