Skip to content

Commit a312e28

Browse files
authored
fix: nil pointer on logging (#4127)
Signed-off-by: Zach Aller <zachaller@users.noreply.github.com>
1 parent 44eee2e commit a312e28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rollout/ephemeralmetadata.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func (c *rolloutContext) syncEphemeralMetadata(ctx context.Context, rs *appsv1.R
7373
// 1. Update ReplicaSet so that any new pods it creates will have the metadata
7474
rs, err := c.updateReplicaSet(ctx, modifiedRS)
7575
if err != nil {
76-
c.log.Infof("failed to sync ephemeral metadata %v to ReplicaSet %s: %v", podMetadata, rs.Name, err)
76+
c.log.Infof("failed to sync ephemeral metadata %v to ReplicaSet %s: %v", podMetadata, originalRSCopy.Name, err)
7777
return fmt.Errorf("failed to sync ephemeral metadata: %w", err)
7878
}
7979
c.log.Infof("synced ephemeral metadata %v to ReplicaSet %s", podMetadata, rs.Name)

0 commit comments

Comments
 (0)