From 46ef54e80ab1fb3055c216a4b6e03cd8c300b278 Mon Sep 17 00:00:00 2001 From: yanggang Date: Tue, 15 Aug 2023 19:36:07 +0800 Subject: [PATCH] fix backup_controller when credentials to volume snapshot location show error. Signed-off-by: yanggang --- pkg/controller/backup_controller.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/controller/backup_controller.go b/pkg/controller/backup_controller.go index b0003f9a8d..44a1715fb5 100644 --- a/pkg/controller/backup_controller.go +++ b/pkg/controller/backup_controller.go @@ -590,6 +590,10 @@ func (b *backupReconciler) validateAndGetSnapshotLocations(backup *velerov1api.B } } + if len(errors) > 0 { + return nil, errors + } + return providerLocations, nil }