On the cert-manager side this seemed to fail as soon as they switched to apiextensions.k8s.io/v1
The error seems quite clear but not sure how to resolve it (I've tried updating the manifest to specify number instead of integer, but get the same issue).
Any pointers?
INFO Validating customresourcedefinitions certificates.cert-manager.io
INFO validate object "apiextensions.k8s.io/v1, Kind=CustomResourceDefinition"
ERROR Error in customresourcedefinitions certificates.cert-manager.io: ValidationError(v1.CustomResourceDefinition.spec.versions[0].schema.openAPIV3Schema.properties.spec.properties.keySize.maximum): invalid type for io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps.maximum: got "integer", expected "number"
ERROR Error in customresourcedefinitions certificates.cert-manager.io: ValidationError(v1.CustomResourceDefinition.spec.versions[0].schema.openAPIV3Schema.properties.spec.properties.keySize.minimum): invalid type for io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps.minimum: got "integer", expected "number"
ERROR Error in customresourcedefinitions certificates.cert-manager.io: ValidationError(v1.CustomResourceDefinition.spec.versions[1].schema.openAPIV3Schema.properties.spec.properties.keySize.maximum): invalid type for io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps.maximum: got "integer", expected "number"
ERROR Error in customresourcedefinitions certificates.cert-manager.io: ValidationError(v1.CustomResourceDefinition.spec.versions[1].schema.openAPIV3Schema.properties.spec.properties.keySize.minimum): invalid type for io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps.minimum: got "integer", expected "number"
ERROR Error in customresourcedefinitions certificates.cert-manager.io: ValidationError(v1.CustomResourceDefinition.spec.versions[2].schema.openAPIV3Schema.properties.spec.properties.privateKey.properties.size.maximum): invalid type for io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps.maximum: got "integer", expected "number"
ERROR Error in customresourcedefinitions certificates.cert-manager.io: ValidationError(v1.CustomResourceDefinition.spec.versions[2].schema.openAPIV3Schema.properties.spec.properties.privateKey.properties.size.minimum): invalid type for io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps.minimum: got "integer", expected "number"
ERROR Error in customresourcedefinitions certificates.cert-manager.io: ValidationError(v1.CustomResourceDefinition.spec.versions[3].schema.openAPIV3Schema.properties.spec.properties.privateKey.properties.size.maximum): invalid type for io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps.maximum: got "integer", expected "number"
ERROR Error in customresourcedefinitions certificates.cert-manager.io: ValidationError(v1.CustomResourceDefinition.spec.versions[3].schema.openAPIV3Schema.properties.spec.properties.privateKey.properties.size.minimum): invalid type for io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps.minimum: got "integer", expected "number"
ERROR Validation failed
I'm not entirely sure if this is a cert-manager issue or kubecfg issue.
I'm running a local
KinD
cluster to validate against, and tried bothv1.16
andv1.19
kubernetes versions.On the cert-manager side this seemed to fail as soon as they switched to
apiextensions.k8s.io/v1
The error seems quite clear but not sure how to resolve it (I've tried updating the manifest to specify number instead of integer, but get the same issue).
Any pointers?