prune enum when OpenAPIEnums is disabled.
prune enum when OpenAPIEnums is disabled.

Kubernetes-commit: 9c05de2f31582b47da05d9dd3f9bbf89588bea82

kubernetes/apiextensions-apiserver,kubernetes/apiextensions-apiserver