From e9ee20ccbf33072f10b4942481d61f821e4095f2 Mon Sep 17 00:00:00 2001 From: Zach Aller Date: Thu, 18 Jan 2024 11:48:31 -0600 Subject: [PATCH] fix logging rs name when update fails Signed-off-by: Zach Aller --- rollout/sync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rollout/sync.go b/rollout/sync.go index a37627f680..7ec692154e 100644 --- a/rollout/sync.go +++ b/rollout/sync.go @@ -380,7 +380,7 @@ func (c *rolloutContext) scaleReplicaSet(rs *appsv1.ReplicaSet, newScale int32, rs, err = c.kubeclientset.AppsV1().ReplicaSets(rsCopy.Namespace).Update(ctx, rsCopy, metav1.UpdateOptions{}) if err != nil { - return scaled, rs, fmt.Errorf("error updating replicaset %s: %w", rs.Name, err) + return scaled, rs, fmt.Errorf("error updating replicaset %s: %w", rsCopy.Name, err) } err = c.replicaSetInformer.GetIndexer().Update(rs) if err != nil {