NetApp/trident

MinimumVolumeSizeBytes not protected with validating webhook

omerbd21 opened this issue · 1 comments

Describe the solution you'd like
As of now, when a user asks for a volume smaller than 20Mib, the request gets processed and hangs (because the volume wouldn't be created and that hangs the queue). We would like for a validating webhook to be created, making sure the user can't create a volume smaller than the MinimumVolumeSizeBytes const.

Describe alternatives you've considered
We currently implemented a solution based on limitRange, which we have to setup in any Trident environment we have.

Additional context
We are running on OpenShift Clusters version 4.12.

Can someone please check it out before I'll create a PR?