squakez opened a new issue, #4781:
URL: https://github.com/apache/camel-k/issues/4781
### What happened?
When an Integration ends up in Error state, the operator provides some error
log traces, likely because it keeps trying to reconcile trying to apply trait:
```
camel-k-operator-7856cb497b-smfkq camel-k-operator
{"level":"info","ts":"2023-09-29T13:57:50Z","logger":"camel-k.controller.integration","msg":"State
transition","request-namespace":"default","request-name":"test","api-version":"camel.apache.org/v1","kind":"Integration","ns":"default","name":"test","phase-from":"Building
Kit","phase-to":"Error"}
camel-k-operator-7856cb497b-smfkq camel-k-operator
{"level":"error","ts":"2023-09-29T13:57:50Z","msg":"Reconciler
error","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","Integration":{"name":"test","namespace":"default"},"namespace":"default","name":"test","reconcileID":"e482a7a2-803d-403e-822e-72d7c627257a","error":"error
during trait customization: unable to find integration container:
test","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:324\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:265\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:226"}
camel-k-operator-7856cb497b-smfkq camel-k-operator
{"level":"error","ts":"2023-09-29T13:57:50Z","msg":"Reconciler
error","controller":"integr
...
```
Altough it's a cosmetic issue, we should get rid of it to improve the
observability and the clean logging of the operator.
### Steps to reproduce
_No response_
### Relevant log output
_No response_
### Camel K version
_No response_
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]