Convert admissionregistration.k8s.io/v1beta1 to admissionregistration.k8s.io/v1

Hello Everyone,

I am looking for a good way to support admissionregistration.k8s.io/v1 and admissionregistration.k8s.io/v1beta1 to support both versions in a ValidatingWebhookConfiguration. is there a way of handling of parsing both requests and easily convert the v1beta1 struct to v1?

Other ideas are welcome, would appreciate feedback here.

Cluster information:

Kubernetes version: 1.19
Cloud being used: docker-desktop
Installation method: docker-desktop
Host OS: macOS / docker-desktop
CNI and version:
CRI and version:

Thanks!