pvc-autoscaler
pvc-autoscaler copied to clipboard
It would be nice to display Gi instead of bytes when logging successful resize
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
- Change the log line in this file to log the sizes in Gi instead of bytes