migcommon

package
v0.0.0-...-cbc29ca Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2020 License: Apache-2.0 Imports: 5 Imported by: 8

Documentation

Index

Constants

View Source
const IncludedInStageBackupLabel = "migration-included-stage-backup"
View Source
const MigMigrationLabelKey string = "migmigration"

Restored items label

View Source
const MigrateAccessModeAnnotation string = "openshift.io/target-access-mode"

target access mode

View Source
const MigrateCopyPhaseAnnotation string = "openshift.io/migrate-copy-phase"

stage, final. Only valid for copy type.

View Source
const MigrateQuiesceAnnotation string = "openshift.io/migrate-quiesce-pods"
View Source
const MigrateStorageClassAnnotation string = "openshift.io/target-storage-class"

target storage class

View Source
const MigrateTypeAnnotation string = "openshift.io/migrate-type"

copy, swing, TODO: others (snapshot, custom, etc.)

View Source
const MigratedByLabel string = "migration.openshift.io/migrated-by" // (migmigration UID)
View Source
const MigrationRegistry string = "openshift.io/migration-registry"
View Source
const NamespaceSCCAnnotationGroups string = "openshift.io/sa.scc.supplemental-groups"
View Source
const NamespaceSCCAnnotationMCS string = "openshift.io/sa.scc.mcs"

Namespace SCC annotations

View Source
const NamespaceSCCAnnotationUidRange string = "openshift.io/sa.scc.uid-range"
View Source
const PVCSelectedNodeAnnotation string = "volume.kubernetes.io/selected-node"

kubernetes PVC annotations

View Source
const PodStageLabel string = "migration-stage-pod"
View Source
const ResticBackupAnnotation string = "backup.velero.io/backup-volumes"
View Source
const ResticRestoreAnnotationPrefix string = "snapshot.velero.io"

Restic annotations

View Source
const StagePodImageAnnotation = "migration.openshift.io/stage-pod-image"

Stage pod (sleep) image

View Source
const SwingPVAnnotation string = "openshift.io/swing-pv"

Variables

This section is empty.

Functions

func ConfigureContainerSleep

func ConfigureContainerSleep(containers []corev1API.Container, duration string)

ConfigureContainerSleep replaces the pod, cmd, and arg on containers so that post stage or migrate phase 1 restores applications do not start

Types

type RestorePlugin

type RestorePlugin struct {
	Log logrus.FieldLogger
}

RestorePlugin is a restore item action plugin for Velero.

func (*RestorePlugin) AppliesTo

func (p *RestorePlugin) AppliesTo() (velero.ResourceSelector, error)

AppliesTo returns a velero.ResourceSelector that applies to everything.

func (*RestorePlugin) Execute

Execute sets a custom annotation on the item being restored.

Jump to

Keyboard shortcuts

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