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 ¶
Types ¶
type MigrationPredicate ¶
type MigrationPredicate struct { predicate.TypedFuncs[*api.Migration] }
func (MigrationPredicate) Create ¶
func (r MigrationPredicate) Create(e event.TypedCreateEvent[*api.Migration]) bool
func (MigrationPredicate) Delete ¶
func (r MigrationPredicate) Delete(e event.TypedDeleteEvent[*api.Migration]) bool
func (MigrationPredicate) Update ¶
func (r MigrationPredicate) Update(e event.TypedUpdateEvent[*api.Migration]) bool
type PlanPredicate ¶
type PlanPredicate struct { predicate.TypedFuncs[*api.Plan] }
func (PlanPredicate) Create ¶
func (r PlanPredicate) Create(e event.TypedCreateEvent[*api.Plan]) bool
func (PlanPredicate) Delete ¶
func (r PlanPredicate) Delete(e event.TypedDeleteEvent[*api.Plan]) bool
func (PlanPredicate) Generic ¶
func (r PlanPredicate) Generic(e event.TypedGenericEvent[*api.Plan]) bool
func (PlanPredicate) Update ¶
func (r PlanPredicate) Update(e event.TypedUpdateEvent[*api.Plan]) bool
Click to show internal directories.
Click to hide internal directories.