You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2020/09/23 13:02:54 UTC

[GitHub] [camel-k] astefanutti commented on issue #1710: Generate CRD schema for Kamelet + KameletBinding

astefanutti commented on issue #1710:
URL: https://github.com/apache/camel-k/issues/1710#issuecomment-697349814


   It seems there are errors while generating the CRDs for the `jsonschema_types.go` file:
   
   ```
   $ make generate-crd 
   ./script/gen_crd.sh
   Generating CRDs...
   go: downloading sigs.k8s.io/controller-tools v0.0.0-20200528125929-5c0c6ae3b64b
   /Users/astefanu/Development/camel-k/pkg/apis/camel/v1alpha1/jsonschema_types.go:65:24: unsupported type "float64"
   /Users/astefanu/Development/camel-k/pkg/apis/camel/v1alpha1/jsonschema_types.go:67:24: unsupported type "float64"
   /Users/astefanu/Development/camel-k/pkg/apis/camel/v1alpha1/jsonschema_types.go:75:24: unsupported type "float64"
   /Users/astefanu/Development/camel-k/pkg/apis/camel/v1alpha1/jsonschema_types.go:200:2: encountered struct field "Schema" without JSON tag in type "JSONSchemaPropsOrArray"
   /Users/astefanu/Development/camel-k/pkg/apis/camel/v1alpha1/jsonschema_types.go:201:2: encountered struct field "JSONSchemas" without JSON tag in type "JSONSchemaPropsOrArray"
   /Users/astefanu/Development/camel-k/pkg/apis/camel/v1alpha1/jsonschema_types.go:220:2: encountered struct field "Allows" without JSON tag in type "JSONSchemaPropsOrBool"
   /Users/astefanu/Development/camel-k/pkg/apis/camel/v1alpha1/jsonschema_types.go:221:2: encountered struct field "Schema" without JSON tag in type "JSONSchemaPropsOrBool"
   /Users/astefanu/Development/camel-k/pkg/apis/camel/v1alpha1/jsonschema_types.go:242:2: encountered struct field "Schema" without JSON tag in type "JSONSchemaPropsOrStringArray"
   /Users/astefanu/Development/camel-k/pkg/apis/camel/v1alpha1/jsonschema_types.go:243:2: encountered struct field "Property" without JSON tag in type "JSONSchemaPropsOrStringArray"
   /Users/astefanu/Development/camel-k/pkg/apis/camel/v1alpha1/jsonschema_types.go:65:24: unsupported type "float64"
   /Users/astefanu/Development/camel-k/pkg/apis/camel/v1alpha1/jsonschema_types.go:67:24: unsupported type "float64"
   /Users/astefanu/Development/camel-k/pkg/apis/camel/v1alpha1/jsonschema_types.go:75:24: unsupported type "float64"
   /Users/astefanu/Development/camel-k/pkg/apis/camel/v1alpha1/jsonschema_types.go:200:2: encountered struct field "Schema" without JSON tag in type "JSONSchemaPropsOrArray"
   /Users/astefanu/Development/camel-k/pkg/apis/camel/v1alpha1/jsonschema_types.go:201:2: encountered struct field "JSONSchemas" without JSON tag in type "JSONSchemaPropsOrArray"
   /Users/astefanu/Development/camel-k/pkg/apis/camel/v1alpha1/jsonschema_types.go:220:2: encountered struct field "Allows" without JSON tag in type "JSONSchemaPropsOrBool"
   /Users/astefanu/Development/camel-k/pkg/apis/camel/v1alpha1/jsonschema_types.go:221:2: encountered struct field "Schema" without JSON tag in type "JSONSchemaPropsOrBool"
   /Users/astefanu/Development/camel-k/pkg/apis/camel/v1alpha1/jsonschema_types.go:242:2: encountered struct field "Schema" without JSON tag in type "JSONSchemaPropsOrStringArray"
   /Users/astefanu/Development/camel-k/pkg/apis/camel/v1alpha1/jsonschema_types.go:243:2: encountered struct field "Property" without JSON tag in type "JSONSchemaPropsOrStringArray"
   Error: not all generators ran successfully
   run `controller-gen crd paths=./... output:crd:dir=../../../deploy/crds crd:crdVersions=v1beta1 -w` to see all available markers, or `controller-gen crd paths=./... output:crd:dir=../../../deploy/crds crd:crdVersions=v1beta1 -h` for usage
   exit status 1
   make: *** [generate-crd] Error 1
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org