Skip to content

Commit

Permalink
add error context
Browse files Browse the repository at this point in the history
Signed-off-by: zachaller <[email protected]>
  • Loading branch information
zachaller committed Oct 11, 2023
1 parent c9abbb6 commit 7c5c5e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rollout/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ func (c *rolloutContext) syncReplicaSetRevision() (*appsv1.ReplicaSet, error) {
rs, err := c.kubeclientset.AppsV1().ReplicaSets(rsCopy.ObjectMeta.Namespace).Update(ctx, rsCopy, metav1.UpdateOptions{})
if err != nil {
c.log.WithError(err).Error("Error: updating replicaset revision")
return nil, err
return nil, fmt.Errorf("error updating replicaset revision: %v", err)
}
c.log.Infof("Synced revision on ReplicaSet '%s' to '%s'", rs.Name, newRevision)
c.replicaSetInformer.GetIndexer().Update(rs)
return rs, err
return rs, nil
}

// Should use the revision in existingNewRS's annotation, since it set by before
Expand Down

0 comments on commit 7c5c5e1

Please sign in to comment.