mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-05 13:05:17 +00:00
Track and persist restore volume info
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
This commit is contained in:
@@ -61,3 +61,9 @@ func NewListOptionsForBackup(name string) metav1.ListOptions {
|
||||
LabelSelector: fmt.Sprintf("%s=%s", velerov1api.BackupNameLabel, GetValidName(name)),
|
||||
}
|
||||
}
|
||||
|
||||
// NewSelectorForRestore returns a Selector based on the restore name.
|
||||
// This is useful for interacting with Listers that need a Selector.
|
||||
func NewSelectorForRestore(name string) labels.Selector {
|
||||
return labels.SelectorFromSet(map[string]string{velerov1api.RestoreNameLabel: GetValidName(name)})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user