-
Notifications
You must be signed in to change notification settings - Fork 41
/
annotations.go
33 lines (30 loc) · 1.7 KB
/
annotations.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package v1alpha1
// Velero Plugin Annotations
const (
StageOrFinalMigrationAnnotation = "migration.openshift.io/migmigration-type" // (stage|final)
StageMigration = "stage"
FinalMigration = "final"
PvActionAnnotation = "openshift.io/migrate-type" // (move|copy)
PvStorageClassAnnotation = "openshift.io/target-storage-class" // storageClassName
PvAccessModeAnnotation = "openshift.io/target-access-mode" // accessMode
PvCopyMethodAnnotation = "migration.openshift.io/copy-method" // (snapshot|filesystem)
QuiesceAnnotation = "openshift.io/migrate-quiesce-pods" // (true|false)
QuiesceNodeSelector = "migration.openshift.io/quiesceDaemonSet"
SuspendAnnotation = "migration.openshift.io/preQuiesceSuspend"
ReplicasAnnotation = "migration.openshift.io/preQuiesceReplicas"
PausedAnnotation = "migration.openshift.io/preQuiescePaused"
NodeSelectorAnnotation = "migration.openshift.io/preQuiesceNodeSelector"
StagePodImageAnnotation = "migration.openshift.io/stage-pod-image"
ExcludePVCPodAnnotation = "migration.openshift.io/exclude-pvcs" // Exclude PVCs if marked "move" or "snapshot" in the plan
)
// Restic Annotations
const (
ResticPvBackupAnnotation = "backup.velero.io/backup-volumes" // comma-separated list of volume names
ResticPvVerifyAnnotation = "backup.velero.io/verify-volumes" // comma-separated list of volume names
)
// Migration Annotations
const (
// Disables the internal image copy
DisableImageCopy = "migration.openshift.io/disable-image-copy"
StateMigrationAnnotation = "migration.openshift.io/state-transfer"
)