From f60c2ae4c721e87acb4fcddef1bda7ec67972c7c Mon Sep 17 00:00:00 2001 From: wangyelei Date: Thu, 26 Dec 2024 14:42:10 +0800 Subject: [PATCH] fix: restore ops info is not deleted in cluster.annotations when restore is done --- controllers/apps/operations/restore.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/apps/operations/restore.go b/controllers/apps/operations/restore.go index da7731911e4..ef54cc04c24 100644 --- a/controllers/apps/operations/restore.go +++ b/controllers/apps/operations/restore.go @@ -116,7 +116,7 @@ func (r RestoreOpsHandler) ReconcileAction(reqCtx intctrlutil.RequestCtx, cli cl } return appsv1alpha1.OpsFailedPhase, 0, err } - + opsRes.Cluster = cluster // check if the cluster is running if cluster.Status.Phase == appsv1alpha1.RunningClusterPhase { return appsv1alpha1.OpsSucceedPhase, 0, nil