remove legacy restore label
Signed-off-by: Steve Kriss <krisss@vmware.com>pull/1323/head
parent
c8c03a38e9
commit
892673816b
|
@ -29,14 +29,6 @@ const (
|
|||
// files that store metadata about the backup, such as the backup version.
|
||||
MetadataDir = "metadata"
|
||||
|
||||
// RestoreLabelKey is the label key that's applied to all resources that
|
||||
// are created during a restore. This is applied for ease of identification
|
||||
// of restored resources. The value will be the restore's name.
|
||||
//
|
||||
// This label is DEPRECATED as of v0.10 and will be removed entirely as of
|
||||
// v1.0 and replaced with RestoreNameLabel ("velero.io/restore-name").
|
||||
RestoreLabelKey = "velero-restore"
|
||||
|
||||
// ClusterScopedDir is the name of the directory containing cluster-scoped
|
||||
// resources within a Velero backup.
|
||||
ClusterScopedDir = "cluster"
|
||||
|
|
|
@ -1115,11 +1115,6 @@ func addRestoreLabels(obj metav1.Object, restoreName, backupName string) {
|
|||
labels[api.BackupNameLabel] = backupName
|
||||
labels[api.RestoreNameLabel] = restoreName
|
||||
|
||||
// TODO(1.0): remove the below line, and remove the `RestoreLabelKey`
|
||||
// constant from the API pkg, since it's been replaced with the
|
||||
// namespaced label above.
|
||||
labels[api.RestoreLabelKey] = restoreName
|
||||
|
||||
obj.SetLabels(labels)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue