Comment 3 for bug 1921553

Revision history for this message
Cory Johns (johnsca) wrote :

It looks like apiextensions.k8s.io/v1 was introduced in 1.16, at which point apiextensions.k8s.io/v1beta1 was deprecated and will be removed entirely in 1.22 [1].

From what I can tell, when you create a CRD with apiextensions.k8s.io/v1beta1, it is automatically converted by K8s to apiextensions.k8s.io/v1 with the preserveUnknownFields automatically set [1]. Requests to list or get CRDs will return them no matter what version they were created with and creating resources based on those CRDs will work the same regardless of which version the CRD itself was created with.

[1]: https://kubernetes.io/docs/reference/using-api/deprecation-guide/#customresourcedefinition-v122

[2]: https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#field-pruning