mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-05 04:55:22 +00:00
issue 8813: remove restic from the valid uploader type
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
This commit is contained in:
@@ -588,6 +588,11 @@ func (r *PodVolumeBackupReconciler) OnDataPathProgress(ctx context.Context, name
|
||||
func (r *PodVolumeBackupReconciler) SetupWithManager(mgr ctrl.Manager) error {
|
||||
gp := kube.NewGenericEventPredicate(func(object client.Object) bool {
|
||||
pvb := object.(*velerov1api.PodVolumeBackup)
|
||||
|
||||
if _, err := uploader.ValidateUploaderType(pvb.Spec.UploaderType); err != nil {
|
||||
return false
|
||||
}
|
||||
|
||||
if pvb.Status.Phase == velerov1api.PodVolumeBackupPhaseAccepted {
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user