Skip to content

Commit

Permalink
fix: cancel op patch imagemanager status error (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
hysyeah authored Dec 17, 2024
1 parent 4a4315d commit c9aae7f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controllers/appmgr_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,9 @@ func (r *ApplicationManagerController) cancel(appMgr *appv1alpha1.ApplicationMan
}
imCopy := im.DeepCopy()
imCopy.Status.State = "canceled"
now := metav1.Now()
imCopy.Status.StatusTime = &now
imCopy.Status.UpdateTime = &now
err = r.Status().Patch(context.TODO(), imCopy, client.MergeFrom(&im))
if err != nil {
return err
Expand Down

0 comments on commit c9aae7f

Please sign in to comment.