Skip to content

Commit

Permalink
fix: log rs name when update fails (#3318)
Browse files Browse the repository at this point in the history
fix logging rs name when update fails

Signed-off-by: Zach Aller <zachaller@users.noreply.github.com>
  • Loading branch information
zachaller committed Jan 25, 2024
1 parent 4ea52fa commit a9f6216
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rollout/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a9f6216

Please sign in to comment.