migration

package
v0.0.0-...-e73b65a Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: Apache-2.0 Imports: 24 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.Funcs
}

func (MigrationPredicate) Create

func (MigrationPredicate) Delete

func (MigrationPredicate) Update

type PlanPredicate

type PlanPredicate struct {
	predicate.Funcs
}

func (PlanPredicate) Create

func (r PlanPredicate) Create(e event.CreateEvent) bool

func (PlanPredicate) Delete

func (r PlanPredicate) Delete(e event.DeleteEvent) bool

func (PlanPredicate) Generic

func (r PlanPredicate) Generic(e event.GenericEvent) bool

func (PlanPredicate) Update

func (r PlanPredicate) Update(e event.UpdateEvent) bool

type Reconciler

type Reconciler struct {
	base.Reconciler
}

Reconciles a Migration object.

func (Reconciler) Reconcile

func (r Reconciler) Reconcile(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