mysql-operator icon indicating copy to clipboard operation
mysql-operator copied to clipboard

helm v2 crd-install apiextensions.k8s.io/v1 does not work

Open jicki opened this issue 4 years ago • 4 comments

helm v2 crd-install apiextensions.k8s.io/v1 does not work

 fail(1): Error: unable to convert to CRD type: no kind "CustomResourceDefinition" is registered for version "apiextensions.k8s.io/v1" in scheme "k8s.io/client-go/kubernetes/scheme/register.go:67"

jicki avatar Mar 18 '21 07:03 jicki

perhaps your k8s version is old? something like 1.15?

change the CRD apiVersion to apiextensions.k8s.io/v1beta1 and let's know if that works

olakunleoladimeji avatar Mar 24 '21 08:03 olakunleoladimeji

perhaps your k8s version is old? something like 1.15?

change the CRD apiVersion to apiextensions.k8s.io/v1beta1 and let's know if that works

my k8s version 1.17 helm version 2.16.6

Modifying apiVersion directly to apiextensions.k8s.io/v1beta1 does not work

git tags v0.5.0-rc1 works

jicki avatar Mar 25 '21 01:03 jicki

change the CRD apiVersion to apiextensions.k8s.io/v1beta1

Error: CustomResourceDefinition.apiextensions.k8s.io "mysqlbackups.mysql.presslabs.org" is invalid: spec.versions: Invalid value: []apiextensions.CustomResourceDefinitionVersion{apiextensions.CustomResourceDefinitionVersion{Name:"v1alpha1", Served:true, Storage:true, Schema:(*apiextensions.CustomResourceValidation)(0xc00f04a0c8), Subresources:(*apiextensions.CustomResourceSubresources)(nil), AdditionalPrinterColumns:[]apiextensions.CustomResourceColumnDefinition(nil)}}: per-version schemas may not all be set to identical values (top-level validation should be used instead)

jicki avatar Apr 09 '21 02:04 jicki

Please try version 0.5.0 and let us know if this still happens. Also please note that we'll drop support for Helm v2 in 0.6.0 (see #731).

calind avatar Oct 11 '21 11:10 calind