You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use the Kamelet spec in a custom controller built using operator-sdk 1.2.x but it looks like the manifests cannot be built, to reproduce the issue:
operator-sdk create api --group=example --version=v1alpha1 --kind=MyType
add a Field of type KameletSpec to your spec, like:
// MyTypeSpec defines the desired state of MyTypetypeMyTypeSpecstruct {
Kamelet*camelv1alpha1.KameletSpec`json:"kamelet,omitempty"`
}
run make manifests and you should get an error like:
$ make manifests
controller-gen "crd:trivialVersions=true" rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases
gihub.com/lburgazzoli/embedded-camel-k-cr/api/v1alpha1:-: conflicting types in allOf branches in schema: string vs object
Error: not all generators ran successfully
run `controller-gen crd:trivialVersions=true rbac:roleName=manager-role webhook paths=./... output:crd:artifacts:config=config/crd/bases -w` to see all available markers, or `controller-gen crd:trivialVersions=true rbac:roleName=manager-role webhook paths=./... output:crd:artifacts:config=config/crd/bases -h` for usage
make: *** [Makefile:58: manifests] Error 1
The text was updated successfully, but these errors were encountered:
I'm trying to use the
Kamelet
spec in a custom controller built using operator-sdk 1.2.x but it looks like the manifests cannot be built, to reproduce the issue:KameletSpec
to your spec, like:make manifests
and you should get an error like:The text was updated successfully, but these errors were encountered: