datastoremigration

package
v1.42.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package datastoremigration provides utilities for checking DatastoreMigration CR state from the operator's controllers.

Index

Constants

View Source
const (
	PhasePending                      = "Pending"
	PhaseMigrating                    = "Migrating"
	PhaseWaitingForConflictResolution = "WaitingForConflictResolution"
	PhaseConverged                    = "Converged"
	PhaseComplete                     = "Complete"
	PhaseFailed                       = "Failed"
)

Phase constants for DatastoreMigration status.

Variables

View Source
var (
	SchemeGroupVersion = schema.GroupVersion{Group: "migration.projectcalico.org", Version: "v1beta1"}
	SchemeBuilder      = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme        = SchemeBuilder.AddToScheme
)

Functions

func Exists

func Exists(c client.Client) bool

Exists returns true if at least one DatastoreMigration CR exists.

func GetPhase

func GetPhase(c client.Client) string

GetPhase returns the phase of the first DatastoreMigration CR, or empty string if none exists or the CRD is not installed.

Types

type DatastoreMigration

type DatastoreMigration struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Status            DatastoreMigrationStatus `json:"status,omitempty"`
}

DatastoreMigration is a minimal stub for the migration.projectcalico.org/v1beta1 DatastoreMigration CR. It contains only the fields the operator needs to read, allowing controller-runtime to cache these objects via a typed watch.

func (*DatastoreMigration) DeepCopyObject

func (in *DatastoreMigration) DeepCopyObject() runtime.Object

type DatastoreMigrationList

type DatastoreMigrationList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []DatastoreMigration `json:"items"`
}

DatastoreMigrationList is a list of DatastoreMigration resources.

func (*DatastoreMigrationList) DeepCopyObject

func (in *DatastoreMigrationList) DeepCopyObject() runtime.Object

type DatastoreMigrationStatus

type DatastoreMigrationStatus struct {
	Phase string `json:"phase,omitempty"`
}

Jump to

Keyboard shortcuts

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