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 ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.