From 464dde5504da2defefe426f371d995de1b821f29 Mon Sep 17 00:00:00 2001 From: camartinez04 Date: Tue, 2 May 2023 14:49:29 -0400 Subject: [PATCH] adding name of resource that were not restored on applicationrestore.go --- .gitignore | 2 ++ pkg/applicationmanager/controllers/applicationrestore.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 22dbebd779..f1d443d279 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,5 @@ bin/ help-cmdexecutor.1 help.1 coverage.txt +.idea + diff --git a/pkg/applicationmanager/controllers/applicationrestore.go b/pkg/applicationmanager/controllers/applicationrestore.go index 5f43078734..f1cd09165f 100644 --- a/pkg/applicationmanager/controllers/applicationrestore.go +++ b/pkg/applicationmanager/controllers/applicationrestore.go @@ -1605,7 +1605,7 @@ func (a *ApplicationRestoreController) restoreResources( for _, resource := range restore.Status.Resources { if resource.Status != storkapi.ApplicationRestoreStatusSuccessful { restore.Status.Status = storkapi.ApplicationRestoreStatusPartialSuccess - restore.Status.Reason = "Volumes were restored successfully. Some existing resources were not replaced" + restore.Status.Reason = fmt.Sprintf("Volumes were restored successfully. Some existing resources were not replaced, resource: %s", resource.Name) break } }