This repository has been archived by the owner on Oct 28, 2024. It is now read-only.
🐛 ClusterVersion CRD gets rejected on k8 v1.20.2 #62
Labels
lifecycle/frozen
Indicates that an issue or PR should not be auto-closed due to staleness.
The ClusterVersion CRD is using apiVersion v1beta1 which requires properties in x-kubernetes-list-map-keys to be required (validation was introduced with kubernetes/kubernetes@2e18741). v1 supports defaults too.
A manual rebuild with a newer controller-gen (I've used controller-tools 0.5.0) using
controller-gen "crd:trivialVersions=true,maxDescLen=0" rbac:roleName=manager-role paths="./..." output:crd:artifacts:config=config/crds
creates an accepted CRD with the v1 CRD API.
Unfortunately, the CRD generated from
make build
is broken (contains an invalid validation: section) with newer controller-tools installed. I guess the reason is replace-null in hack/lib/util.sh.The text was updated successfully, but these errors were encountered: