Skip to content

Commit

Permalink
change update workload to update workload status
Browse files Browse the repository at this point in the history
  • Loading branch information
brucejunlli committed Jan 24, 2024
1 parent c811bb6 commit 08d0aec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/controller/recommendation/updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ func (c *RecommendationController) UpdateRecommendation(ctx context.Context, rec

if needUpdate {
unstructed.SetAnnotations(annotation)
err = c.Client.Update(ctx, unstructed)
//Convergence craned permissions
err = c.Client.Status().Update(ctx, unstructed)
if err != nil {
return false, fmt.Errorf("update target annotation failed: %v. ", err)
}
Expand Down

0 comments on commit 08d0aec

Please sign in to comment.