From 08d0aec335f129b149f95c0222f12687ffe98876 Mon Sep 17 00:00:00 2001 From: brucejunlli Date: Thu, 18 Jan 2024 11:01:39 +0800 Subject: [PATCH] change update workload to update workload status --- pkg/controller/recommendation/updater.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/controller/recommendation/updater.go b/pkg/controller/recommendation/updater.go index ecf940a0d..37b0ff08e 100644 --- a/pkg/controller/recommendation/updater.go +++ b/pkg/controller/recommendation/updater.go @@ -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) }