Documentation ¶
Index ¶
- Constants
- Variables
- func Add(mgr manager.Manager) error
- func MigrationRequests(a client.Object, inNamespace string) []reconcile.Request
- type Claims
- type ClusterPredicate
- type HookPredicate
- type MigrationPredicate
- type NfsValidation
- type PlanPredicate
- type PlanStorage
- func (r *PlanStorage) BuildBSL() *velero.BackupStorageLocation
- func (r *PlanStorage) BuildBSLCloudSecret() (*kapi.Secret, error)
- func (r *PlanStorage) BuildVSL() *velero.VolumeSnapshotLocation
- func (r *PlanStorage) BuildVSLCloudSecret() (*kapi.Secret, error)
- func (r *PlanStorage) UpdateBSL(bsl *velero.BackupStorageLocation)
- func (r *PlanStorage) UpdateBSLCloudSecret(cloudSecret *kapi.Secret) error
- func (r *PlanStorage) UpdateVSL(vsl *velero.VolumeSnapshotLocation)
- func (r *PlanStorage) UpdateVSLCloudSecret(cloudSecret *kapi.Secret) error
- type PvMap
- type ReconcileMigPlan
- type StoragePredicate
Constants ¶
View Source
const ( MigPlan = "migplan" CreatedBy = "CreatedBy" )
View Source
const ( Suspended = "Suspended" InvalidSourceClusterRef = "InvalidSourceClusterRef" InvalidDestinationClusterRef = "InvalidDestinationClusterRef" InvalidStorageRef = "InvalidStorageRef" SourceClusterNotReady = "SourceClusterNotReady" DestinationClusterNotReady = "DestinationClusterNotReady" ClusterVersionMismatch = "ClusterVersionMismatch" SourceClusterNoRegistryPath = "SourceClusterNoRegistryPath" DestinationClusterNoRegistryPath = "DestinationClusterNoRegistryPath" StorageNotReady = "StorageNotReady" NsListEmpty = "NamespaceListEmpty" InvalidDestinationCluster = "InvalidDestinationCluster" NsNotFoundOnSourceCluster = "NamespaceNotFoundOnSourceCluster" NsNotFoundOnDestinationCluster = "NamespaceNotFoundOnDestinationCluster" NsLimitExceeded = "NamespaceLimitExceeded" NsLengthExceeded = "NamespaceLengthExceeded" NsNotDNSCompliant = "NamespaceNotDNSCompliant" NsHaveNodeSelectors = "NamespacesHaveNodeSelectors" DuplicateNsOnSourceCluster = "DuplicateNamespaceOnSourceCluster" DuplicateNsOnDestinationCluster = "DuplicateNamespaceOnDestinationCluster" PodLimitExceeded = "PodLimitExceeded" SourceClusterProxySecretMisconfigured = "SourceClusterProxySecretMisconfigured" DestinationClusterProxySecretMisconfigured = "DestinationClusterProxySecretMisconfigured" PlanConflict = "PlanConflict" PvNameConflict = "PvNameConflict" PvInvalidAction = "PvInvalidAction" PvNoSupportedAction = "PvNoSupportedAction" PvInvalidStorageClass = "PvInvalidStorageClass" PvInvalidAccessMode = "PvInvalidAccessMode" PvNoStorageClassSelection = "PvNoStorageClassSelection" PvWarnNoCephAvailable = "PvWarnNoCephAvailable" PvInvalidCopyMethod = "PvInvalidCopyMethod" PvCapacityAdjustmentRequired = "PvCapacityAdjustmentRequired" PvUsageAnalysisFailed = "PvUsageAnalysisFailed" PvNoCopyMethodSelection = "PvNoCopyMethodSelection" PvWarnCopyMethodSnapshot = "PvWarnCopyMethodSnapshot" NfsNotAccessible = "NfsNotAccessible" NfsAccessCannotBeValidated = "NfsAccessCannotBeValidated" PvLimitExceeded = "PvLimitExceeded" StorageEnsured = "StorageEnsured" RegistriesEnsured = "RegistriesEnsured" RegistriesHealthy = "RegistriesHealthy" PvsDiscovered = "PvsDiscovered" Closed = "Closed" SourcePodsNotHealthy = "SourcePodsNotHealthy" GVKsIncompatible = "GVKsIncompatible" InvalidHookRef = "InvalidHookRef" InvalidResourceList = "InvalidResourceList" HookNotReady = "HookNotReady" InvalidHookNSName = "InvalidHookNSName" InvalidHookSAName = "InvalidHookSAName" HookPhaseUnknown = "HookPhaseUnknown" HookPhaseDuplicate = "HookPhaseDuplicate" IntraClusterMigration = "IntraClusterMigration" KubeVirtNotInstalledSourceCluster = "KubeVirtNotInstalledSourceCluster" KubeVirtVersionNotSupported = "KubeVirtVersionNotSupported" KubeVirtStorageLiveMigrationNotEnabled = "KubeVirtStorageLiveMigrationNotEnabled" )
Types
View Source
const ( Advisory = migapi.Advisory Critical = migapi.Critical Error = migapi.Error Warn = migapi.Warn )
Categories
View Source
const ( NotSet = "NotSet" NotFound = "NotFound" KeyNotFound = "KeyNotFound" NotDistinct = "NotDistinct" LimitExceeded = "LimitExceeded" LengthExceeded = "LengthExceeded" NotDNSCompliant = "NotDNSCompliant" NotDone = "NotDone" Done = "Done" Conflict = "Conflict" NotHealthy = "NotHealthy" NodeSelectorsDetected = "NodeSelectorsDetected" DuplicateNs = "DuplicateNamespaces" ConflictingNamespaces = "ConflictingNamespaces" ConflictingPermissions = "ConflictingPermissions" NotSupported = "NotSupported" )
Reasons
View Source
const ( KubeVirtNotInstalledSourceClusterMessage = "KubeVirt is not installed on the source cluster" KubeVirtVersionNotSupportedMessage = "KubeVirt version does not support storage live migration, Virtual Machines will be stopped instead" KubeVirtStorageLiveMigrationNotEnabledMessage = "KubeVirt storage live migration is not enabled, Virtual Machines will be stopped instead" )
Messages
View Source
const ( True = migapi.True False = migapi.False )
Statuses
View Source
const ( VolumesUpdateStrategy = "VolumesUpdateStrategy" VolumeMigrationConfig = "VolumeMigration" VMLiveUpdateFeatures = "VMLiveUpdateFeatures" )
Valid kubevirt feature gates
View Source
const (
NfsPort = "2049"
)
NFS validation
Variables ¶
View Source
var ( // Application settings. Settings = &settings.Settings )
Functions ¶
Types ¶
type ClusterPredicate ¶
func (ClusterPredicate) Create ¶
func (r ClusterPredicate) Create(e event.CreateEvent) bool
func (ClusterPredicate) Update ¶
func (r ClusterPredicate) Update(e event.UpdateEvent) bool
type HookPredicate ¶
func (HookPredicate) Create ¶
func (r HookPredicate) Create(e event.CreateEvent) bool
func (HookPredicate) Update ¶
func (r HookPredicate) Update(e event.UpdateEvent) bool
type MigrationPredicate ¶
func (MigrationPredicate) Create ¶
func (r MigrationPredicate) Create(e event.CreateEvent) bool
func (MigrationPredicate) Update ¶
func (r MigrationPredicate) Update(e event.UpdateEvent) bool
type NfsValidation ¶
NFS validation.
Plan - A migration plan. cluster - The destination cluster. client - A client for the destination. restCfg - A rest configuration for the destination. pod - The pod to be used to execute commands.
type PlanPredicate ¶
func (PlanPredicate) Create ¶
func (r PlanPredicate) Create(e event.CreateEvent) bool
func (PlanPredicate) Delete ¶
func (r PlanPredicate) Delete(e event.DeleteEvent) bool
func (PlanPredicate) Update ¶
func (r PlanPredicate) Update(e event.UpdateEvent) bool
type PlanStorage ¶
PlanStorage Client: The controller client. targetClient: A client for a cluster. plan: A plan resource. storage: A storage resource.
func (*PlanStorage) BuildBSL ¶
func (r *PlanStorage) BuildBSL() *velero.BackupStorageLocation
Build BSL.
func (*PlanStorage) BuildBSLCloudSecret ¶
func (r *PlanStorage) BuildBSLCloudSecret() (*kapi.Secret, error)
Build BSL cloud secret.
func (*PlanStorage) BuildVSL ¶
func (r *PlanStorage) BuildVSL() *velero.VolumeSnapshotLocation
Build VSL.
func (*PlanStorage) BuildVSLCloudSecret ¶
func (r *PlanStorage) BuildVSLCloudSecret() (*kapi.Secret, error)
Build VSL cloud secret.
func (*PlanStorage) UpdateBSL ¶
func (r *PlanStorage) UpdateBSL(bsl *velero.BackupStorageLocation)
Update BSL.
func (*PlanStorage) UpdateBSLCloudSecret ¶
func (r *PlanStorage) UpdateBSLCloudSecret(cloudSecret *kapi.Secret) error
Update backup cloud-secret.
func (*PlanStorage) UpdateVSL ¶
func (r *PlanStorage) UpdateVSL(vsl *velero.VolumeSnapshotLocation)
Update VSL.
func (*PlanStorage) UpdateVSLCloudSecret ¶
func (r *PlanStorage) UpdateVSLCloudSecret(cloudSecret *kapi.Secret) error
Update snapshot cloud-secret.
type ReconcileMigPlan ¶
type ReconcileMigPlan struct { client.Client record.EventRecorder // contains filtered or unexported fields }
ReconcileMigPlan reconciles a MigPlan object
type StoragePredicate ¶
func (StoragePredicate) Create ¶
func (r StoragePredicate) Create(e event.CreateEvent) bool
func (StoragePredicate) Update ¶
func (r StoragePredicate) Update(e event.UpdateEvent) bool
Click to show internal directories.
Click to hide internal directories.