migration

package
v0.0.0-...-802c92e Latest Latest
Warning

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

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

Documentation

Overview

The Migration CR represents an execution of the Plan. The migration reconciler watches the associated Plan and replicates the VM `migration` status to the Status on the Migration CR. The actual migration is orchestrated by the Plan controller.

Index

Constants

View Source
const (
	PlanNotValid = "PlanNotValid"
	PlanNotReady = "PlanNotReady"
	VMNotFound   = "VMNotFound"
	VMNotUnique  = "VMNotUnique"
	Running      = "Running"
	Executing    = plancnt.Executing
	Succeeded    = plancnt.Succeeded
	Failed       = plancnt.Failed
	Canceled     = plancnt.Canceled
)

Types

View Source
const (
	Required = libcnd.Required
	Advisory = libcnd.Advisory
	Critical = libcnd.Critical
	Error    = libcnd.Error
	Warn     = libcnd.Warn
)

Categories

View Source
const (
	NotSet    = "NotSet"
	NotFound  = "NotFound"
	Ambiguous = "Ambiguous"
)

Reasons

View Source
const (
	True  = libcnd.True
	False = libcnd.False
)

Statuses

View Source
const (
	// Name.
	Name = "migration"
)

Variables

View Source
var Settings = &settings.Settings

Application settings.

Functions

func Add

func Add(mgr manager.Manager) error

Creates a new Migration Controller and adds it to the Manager.

Types

type MigrationPredicate

type MigrationPredicate struct {
	predicate.TypedFuncs[*api.Migration]
}

func (MigrationPredicate) Create

func (MigrationPredicate) Delete

func (MigrationPredicate) Update

type PlanPredicate

type PlanPredicate struct {
	predicate.TypedFuncs[*api.Plan]
}

func (PlanPredicate) Create

func (PlanPredicate) Delete

func (PlanPredicate) Generic

func (PlanPredicate) Update

type Reconciler

type Reconciler struct {
	base.Reconciler
}

Reconciles a Migration object.

func (Reconciler) Reconcile

func (r Reconciler) Reconcile(ctx context.Context, request reconcile.Request) (result reconcile.Result, err error)

Reconcile a Migration CR. Note: Must not a pointer receiver to ensure that the logger and other state is not shared.

Jump to

Keyboard shortcuts

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