Skip to content

Commit 79ae518

Browse files
authored
fix: restart ops is always running for restored cluster when the source backup has been deleted (#9733)
1 parent 60cea30 commit 79ae518

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/controller/plan/restore.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ func (r *RestoreManager) DoRestore(comp *component.SynthesizedComponent, compObj
115115
// mark component restore done
116116
if compObj.Annotations != nil {
117117
compObj.Annotations[constant.RestoreDoneAnnotationKey] = "true"
118+
delete(compObj.Annotations, constant.RestoreFromBackupAnnotationKey)
118119
}
119120
// do clean up
120121
return r.cleanupRestoreAnnotations(comp.Name)

0 commit comments

Comments
 (0)