external-provisioner: volume size mismatch between driver and side car containers
Hi we are facing an issue regarding volume size miss match between kubernetes and CSI driver
if I create a PVC of 1.5Gib, external-provisioner is sending the request to CSI driver in bytes, so the CSI driver will create a volume of size 1.5Gib but I think in sidecar container we are round up the value to 2Gib when creating the PV object.
https://github.com/kubernetes-csi/external-provisioner/blob/d0e48803f3280973b2e3fe4588498088dc0d2c5d/pkg/controller/controller.go#L636 is the line which does the round-off.
here is the sample snippet which round of the 1.5Gi to 2Gi https://play.golang.org/p/QZMKmIB5VjF
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 22 (17 by maintainers)
@wongma7 I’m not opposed to the change. 4 digits seem fine but I want to avoid having something like
10032873429b