Hey Mike,
which k8s version and flavor are you using?
For example starting with k8s 1.22 there are some changes in APIs. Like CustomResourceDefinition is no longer v1beta1
, but just v1
.
And in some k8s flavors I see the note:
spec.preserveUnknownFields: true is disallowed when creating v1 CustomResourceDe.finition objects; it must be specified within schema definitions as x-kubernetespreserve-unknown-fields: true.
Could you please try to set all occurrences of x-kubernetes-preserve-unknown-fields:
to false
in crd.yaml
?
Also we migrated to OpenAPI schema starting with 1.12, so it might be related. Please let me know how it goes.