squakez opened a new issue #1648:
URL: https://github.com/apache/camel-k/issues/1648
Hi team,
I am using `kamel` version `1.0.1` to run some integration. It seems that
when I tries using `traits` (Jolokia, for instance), the operator build fails
with this trace error:
```
{"level":"info","ts":1596093483.0354865,"logger":"camel-k.controller.integration","msg":"Invoking
action
platform-setup","request-namespace":"syndesis","request-name":"hello","api-version":"camel.apache.org/v1","kind":"Integration","ns":"syndesis","name":"hello"}
{"level":"error","ts":1596093483.0358343,"logger":"controller-runtime.controller","msg":"Reconciler
error","controller":"integration-controller","request":"syndesis/hello","error":"error
during trait customization: json: cannot unmarshal string into Go struct field
jolokiaTrait.enabled of type bool","errorVerbose":"json: cannot unmarshal
string into Go struct field jolokiaTrait.enabled of type bool\nerror during
trait
customization\ngithub.com/apache/camel-k/pkg/trait.Apply\n\tgithub.com/apache/camel-k@/pkg/trait/trait.go:47\ngithub.com/apache/camel-k/pkg/controller/integration.(*platformSetupAction).Handle\n\tgithub.com/apache/camel-k@/pkg/controller/integration/platform_setup.go:54\ngithub.com/apache/camel-k/pkg/controller/integration.(*ReconcileIntegration).Reconcile\n\tgithub.com/apache/camel-k@/pkg/controller/integration/integration_controller.go:273\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/[email protected]
/pkg/internal/controller/controller.go:256\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:232\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:211\nk8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\tk8s.io/[email protected]/pkg/util/wait/wait.go:152\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\tk8s.io/[email protected]/pkg/util/wait/wait.go:153\nk8s.io/apimachinery/pkg/util/wait.Until\n\tk8s.io/[email protected]/pkg/util/wait/wait.go:88\nruntime.goexit\n\truntime/asm_amd64.s:1357","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\tgithub.com/go-logr/[email protected]/zapr.go:128\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller
.go:258\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:232\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:211\nk8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\tk8s.io/[email protected]/pkg/util/wait/wait.go:152\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\tk8s.io/[email protected]/pkg/util/wait/wait.go:153\nk8s.io/apimachinery/pkg/util/wait.Until\n\tk8s.io/[email protected]/pkg/util/wait/wait.go:88"}
```
This is coming from a simple integration as below:
```
$ kamel describe integration hello
Name: hello
Namespace: syndesis
Creation Timestamp: Thu, 30 Jul 2020 09:17:53 +0200
Phase:
Runtime Version:
Kit:
Image:
Version:
Sources:
Name Language Compression Ref Ref Key
hello.groovy groovy false
Traits:
Jolokia:
Configuration:
Enabled: true
```
It happens the same with Prometheus trait, which are the ones I am using.
----------------------------------------------------------------
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:
[email protected]