From 9785b4192ae47f5ed60d591deb654a2ca4155294 Mon Sep 17 00:00:00 2001 From: qicz Date: Thu, 16 Feb 2023 08:43:14 +0800 Subject: [PATCH] optimize object apply update logic. (#1046) optimize object apply logic. Signed-off-by: qicz --- internal/status/status.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/status/status.go b/internal/status/status.go index 8dd91a5ffa1..9f7aae30c6f 100644 --- a/internal/status/status.go +++ b/internal/status/status.go @@ -91,6 +91,8 @@ func (u *UpdateHandler) apply(update Update) { return nil } + newObj.SetResourceVersion(obj.GetResourceVersion()) + newObj.SetUID(obj.GetUID()) return u.client.Status().Update(context.Background(), newObj) }); err != nil { u.log.Error(err, "unable to update status", "name", update.NamespacedName.Name,