aenix-io / kubefarm

Automated Kubernetes deployment and the PXE-bootable servers farm
Apache License 2.0
327 stars 27 forks source link

dnsmasq crd installation fails on kubernetes 1.23.5-00 #7

Open jomuench opened 2 years ago

jomuench commented 2 years ago

All CRDs fail to install with these errors:

unable to recognize "https://github.com/kvaps/dnsmasq-controller/raw/master/config/crd/bases/dnsmasq.kvaps.cf_dhcphosts.yaml": no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1beta1" unable to recognize "https://github.com/kvaps/dnsmasq-controller/raw/master/config/crd/bases/dnsmasq.kvaps.cf_dhcpoptions.yaml": no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1beta1" unable to recognize "https://github.com/kvaps/dnsmasq-controller/raw/master/config/crd/bases/dnsmasq.kvaps.cf_dnshosts.yaml": no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1beta1" unable to recognize "https://github.com/kvaps/dnsmasq-controller/raw/master/config/crd/bases/dnsmasq.kvaps.cf_dnsmasqoptions.yaml": no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1beta1"

Tried to convert the CRDs:

kubectl convert -f config/crd/bases/dnsmasq.kvaps.cf_dhcphosts.yaml --output-version apiextensions.k8s.io/v1

but this failed with:

error: unable to decode "config/crd/bases/dnsmasq.kvaps.cf_dhcphosts.yaml": no kind "CustomResourceDefinition" is registered for version "apiextensions.k8s.io/v1" in scheme "k8s.io/kubernetes/pkg/api/legacyscheme/scheme.go:30"