kubernetes-sigs / aws-ebs-csi-driver

CSI driver for Amazon EBS https://aws.amazon.com/ebs/
Apache License 2.0
998 stars 800 forks source link

How do you enable CSIStorageCapacity during driver deployment #2170

Open skupjoe opened 1 month ago

skupjoe commented 1 month ago

After deploying aws-ebs-csi-driver I notice that storageCapacity for csidrivers.storage.k8s.io ebs.csi.aws.com is set to false and I have been unable to identify any values/config in the Helm chart to adjust this.

The only workaround I have is to manually patch this value after driver deployment:

kubectl patch csidrivers.storage.k8s.io ebs.csi.aws.com -p '{"spec":{"storageCapacity":true}}'

Is there a different way to set the CSI driver spec that I am overlooking?

Ref: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/csi-storage-capacity-v1/ https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/csi-driver-v1/#CSIDriverSpec

ConnorJC3 commented 1 month ago

Hi, the EBS CSI Driver does not currently implement the CSI GetCapacity call, and thus we intentionally do not offer a way to modify this option in the StorageClass, as it would do nothing. We do not support GetCapacity as it is targeted towards drivers with a limited storage pool, while EBS represents effectively unlimited storage - thus most/all of the features do not apply to EBS volumes.

Is there a reason you are trying to turn on this feature for the EBS CSI Driver?