pvc-autoscaler icon indicating copy to clipboard operation
pvc-autoscaler copied to clipboard

It would be nice to display Gi instead of bytes when logging successful resize

Open lorenzophys opened this issue 1 year ago • 0 comments

When a pvc has been correctly resized the old and new sizes is logged, but the sizes are in bytes, which are harder to read:

a.logger.Infof("pvc %s resized from %d to %d ", pvcId, capacity.Value(), newStorage.Value())

so it would be nice for the log to display the Gi size, so that the log looks something like this: `"pvc example/pvc-example resized from 10Gi to 12Gi"

Tasks

  1. Change the log line in this file to log the sizes in Gi instead of bytes

lorenzophys avatar Aug 10 '23 07:08 lorenzophys