Skip to content

Commit

Permalink
fix: nil pointer on logging (#4127)
Browse files Browse the repository at this point in the history
Signed-off-by: Zach Aller <[email protected]>
  • Loading branch information
zachaller authored Feb 12, 2025
1 parent 44eee2e commit a312e28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rollout/ephemeralmetadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (c *rolloutContext) syncEphemeralMetadata(ctx context.Context, rs *appsv1.R
// 1. Update ReplicaSet so that any new pods it creates will have the metadata
rs, err := c.updateReplicaSet(ctx, modifiedRS)
if err != nil {
c.log.Infof("failed to sync ephemeral metadata %v to ReplicaSet %s: %v", podMetadata, rs.Name, err)
c.log.Infof("failed to sync ephemeral metadata %v to ReplicaSet %s: %v", podMetadata, originalRSCopy.Name, err)
return fmt.Errorf("failed to sync ephemeral metadata: %w", err)
}
c.log.Infof("synced ephemeral metadata %v to ReplicaSet %s", podMetadata, rs.Name)
Expand Down

0 comments on commit a312e28

Please sign in to comment.