Closed raunakkumar closed 3 years ago
As discussed, we will take this feature for next release. Marking it as closed for 1.5
Initially we wanted a solution that works both for volumeMode: Block
and volumeMode: Filesystem
. Not sure statfs will give us that.
Yes agree. I did some research offline and other vendors are using kubernetes/pkg/volume library (https://github.com/kubernetes/kubernetes/blob/master/pkg/volume/metrics_statfs.go#L42) to get stats. For block volume the block size bytes can be retrieved like the aws ebs csi driver below https://github.com/kubernetes-sigs/aws-ebs-csi-driver/blob/master/pkg/driver/node.go#L408-L467
Test Results:
Signed-off-by: Raunak raunak.kumar@hpe.com