Skip to content

Commit

Permalink
fix: restore ops info is not deleted in cluster.annotations when rest…
Browse files Browse the repository at this point in the history
…ore is done (#8717)
  • Loading branch information
wangyelei authored Dec 26, 2024
1 parent ce869a1 commit 4207df1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/apps/operations/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4207df1

Please sign in to comment.