kubernetes-csi / external-snapshotter

Sidecar container that watches Kubernetes Snapshot CRD objects and triggers CreateSnapshot/DeleteSnapshot against a CSI endpoint.
Apache License 2.0
463 stars 361 forks source link

Replace validating webhook with CRD validation rules #1072

Closed cici37 closed 2 months ago

cici37 commented 3 months ago

Is your feature request related to a problem?/Why is this needed

CRD validation rules is turned on by default since Kubernetes 1.25. It would be great if the existing validating webhook be replaced by validation rule which gonna reduce the development complexity and operational complexity dramatically.

Describe the solution you'd like in detail

The existing logic of validating webhook could be replaced by CRD validation rules

Describe alternatives you've considered

Additional context

cici37 commented 3 months ago

/assign