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 (#8715)
  • Loading branch information
wangyelei authored Dec 26, 2024
1 parent 0a26cef commit 96a3360
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/operations/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func (r RestoreOpsHandler) ReconcileAction(reqCtx intctrlutil.RequestCtx, cli cl
}
return opsv1alpha1.OpsFailedPhase, 0, err
}

opsRes.Cluster = cluster
// check if the cluster is running
if cluster.Status.Phase == appsv1.RunningClusterPhase {
return opsv1alpha1.OpsSucceedPhase, 0, nil
Expand Down

0 comments on commit 96a3360

Please sign in to comment.