NetApp / trident

Storage orchestrator for containers
Apache License 2.0
755 stars 219 forks source link

MinimumVolumeSizeBytes not protected with validating webhook #872

Open omerbd21 opened 10 months ago

omerbd21 commented 10 months ago

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.

omerbd21 commented 9 months ago

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