You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "erick-leao (via GitHub)" <gi...@apache.org> on 2023/11/02 22:50:45 UTC

[I] Integration Issue with Karavan 4.0.0 component Direct, [camel-k]

erick-leao opened a new issue, #4893:
URL: https://github.com/apache/camel-k/issues/4893

   ### What happened?
   
   I am encountering an issue when trying to create an Integration with the new version 4.0.0 of Karavan.
   I generated the integration file using the CLI tool kamel v2.1.0 and then tried to deploy it to Minikube. 
   However, the integration does not seem to work as expected.
   
   ### Steps to reproduce
   
   1. Generate an integration file with the kamel CLI tool from a *.caml.yaml file.
   2. Deploy the generated *.k8s.yaml file to Minikube using kubectl apply.
   3. Observe the behavior and resulting logs.
   
   Here's the command sequence I used:
   
   ```shell
   kamel run test.caml.yaml -o yaml > test.k8s.yaml
   kubectl apply -f test.k8s.yaml
   ```
   
   I installed Camel K on Minikube using the following commands:
   
   
   ```shell
   minikube start --addons registry
   kamel install --olm=false
   ```
   
   **Additional information**
   Here are the contents of the original test.caml.yaml and the generated test.k8s.yaml:
   
   **test.caml.yaml:**
   ```yaml
   - rest:
       path: /api
       id: rest-1041
       post:
         - path: /test
           to: my-route
           id: post-b7ad
   - route:
       id: route-438f
       description: Group 1
       from:
         uri: direct
         id: from-d937
         parameters:
           name: my-route
         steps:
           - log:
               message: '-----> ${body} <-----'
               id: log-ae11
   ```
   
   **test.k8s.yaml:**
   
   ```yaml
   apiVersion: camel.apache.org/v1
   kind: Integration
   metadata:
     annotations:
       camel.apache.org/operator.id: camel-k
     creationTimestamp: null
     name: teste
   spec:
     flows:
     - rest:
         id: rest-1041
         path: /api
         post:
         - id: post-b7ad
           path: /test
           to: my-route
     - route:
         description: Group 1
         from:
           id: from-d937
           parameters:
             name: my-route
           steps:
           - log:
               id: log-ae11
               message: '-----> ${body} <-----'
           uri: direct
         id: route-438f
     traits: {}
   status: {}
   ```
   
   ### Relevant log output
   
   ```shell
   {"level":"info","ts":"2023-11-01T01:43:18Z","logger":"camel-k.cmd","msg":"maxprocs: Leaving GOMAXPROCS=[5]: CPU quota undefined"}
   {"level":"info","ts":"2023-11-01T01:43:18Z","logger":"camel-k.cmd","msg":"Go Version: go1.21.0"}
   {"level":"info","ts":"2023-11-01T01:43:18Z","logger":"camel-k.cmd","msg":"Go OS/Arch: linux/amd64"}
   {"level":"info","ts":"2023-11-01T01:43:18Z","logger":"camel-k.cmd","msg":"Camel K Operator Version: 2.1.0"}
   {"level":"info","ts":"2023-11-01T01:43:18Z","logger":"camel-k.cmd","msg":"Camel K Default Runtime Version: 3.2.0"}
   {"level":"info","ts":"2023-11-01T01:43:18Z","logger":"camel-k.cmd","msg":"Camel K Git Commit: 68d5c8cd6945ffa5ea859d248da801797e0bc655"}
   {"level":"info","ts":"2023-11-01T01:43:18Z","logger":"camel-k.cmd","msg":"Camel K Operator ID: camel-k"}
   {"level":"info","ts":"2023-11-01T01:43:18Z","logger":"controller-runtime.metrics","msg":"Metrics server is starting to listen","addr":":8080"}
   {"level":"info","ts":"2023-11-01T01:43:18Z","logger":"camel-k.cmd","msg":"Configuring manager"}
   {"level":"info","ts":"2023-11-01T01:43:18Z","logger":"camel-k.cmd","msg":"Installing operator resources"}
   {"level":"info","ts":"2023-11-01T01:43:19Z","logger":"camel-k.cmd","msg":"Waited for 1.005558844s due to client-side throttling, not priority and fairness, request: PATCH:https://10.96.0.1:443/apis/camel.apache.org/v1/namespaces/kamel/kamelets/topic-name-matches-filter-action?fieldManager=camel-k-operator&force=true\n"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","logger":"camel-k.cmd","msg":"Starting the manager"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","msg":"Starting server","kind":"health probe","addr":"[::]:8081"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","msg":"starting server","path":"/metrics","kind":"metrics","addr":"[::]:8080"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","logger":"camel-k.cmd","msg":"attempting to acquire leader lease kamel/camel-k-lock...\n"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","logger":"camel-k.cmd","msg":"successfully acquired lease kamel/camel-k-lock\n"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","msg":"Starting EventSource","controller":"build-controller","controllerGroup":"camel.apache.org","controllerKind":"Build","source":"kind source: *v1.Build"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","msg":"Starting Controller","controller":"build-controller","controllerGroup":"camel.apache.org","controllerKind":"Build"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","msg":"Starting EventSource","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","source":"kind source: *v1.Integration"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","msg":"Starting EventSource","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","source":"kind source: *v1.Deployment"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","msg":"Starting EventSource","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","source":"kind source: *v1.CronJob"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","msg":"Starting EventSource","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","source":"kind source: *v1.IntegrationKit"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","msg":"Starting EventSource","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","source":"kind source: *v1.IntegrationPlatform"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","msg":"Starting EventSource","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","source":"kind source: *v1.ConfigMap"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","msg":"Starting EventSource","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","source":"kind source: *v1.Secret"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","msg":"Starting EventSource","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","source":"kind source: *v1.Pod"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","msg":"Starting Controller","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","msg":"Starting EventSource","controller":"catalog-controller","controllerGroup":"camel.apache.org","controllerKind":"CamelCatalog","source":"kind source: *v1.CamelCatalog"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","msg":"Starting Controller","controller":"catalog-controller","controllerGroup":"camel.apache.org","controllerKind":"CamelCatalog"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","msg":"Starting EventSource","controller":"integrationkit-controller","source":"kind source: *v1.IntegrationKit"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","msg":"Starting EventSource","controller":"kamelet-controller","controllerGroup":"camel.apache.org","controllerKind":"Kamelet","source":"kind source: *v1.Kamelet"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","msg":"Starting EventSource","controller":"integrationkit-controller","source":"kind source: *v1.Build"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","msg":"Starting EventSource","controller":"integrationkit-controller","source":"kind source: *v1.IntegrationPlatform"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","msg":"Starting Controller","controller":"integrationkit-controller"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","msg":"Starting EventSource","controller":"integrationplatform-controller","source":"kind source: *v1.IntegrationPlatform"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","msg":"Starting Controller","controller":"integrationplatform-controller"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","msg":"Starting EventSource","controller":"kamelet-binding-controller","source":"kind source: *v1alpha1.KameletBinding"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","msg":"Starting Controller","controller":"kamelet-controller","controllerGroup":"camel.apache.org","controllerKind":"Kamelet"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","msg":"Starting EventSource","controller":"kamelet-binding-controller","source":"kind source: *v1.Integration"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","msg":"Starting Controller","controller":"kamelet-binding-controller"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","msg":"Starting EventSource","controller":"kamelet-binding-controller","source":"kind source: *v1.Pipe"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","msg":"Starting EventSource","controller":"kamelet-binding-controller","source":"kind source: *v1.Integration"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","msg":"Starting Controller","controller":"kamelet-binding-controller"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","logger":"camel-k.cmd","msg":"v1apha1.KameletBinding is deprecated, please, use v1.Pipe instead\n"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","logger":"camel-k.cmd","msg":"v1apha1.KameletBinding is deprecated, please, use v1.Pipe instead\n"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","msg":"Starting workers","controller":"build-controller","controllerGroup":"camel.apache.org","controllerKind":"Build","worker count":1}
   {"level":"info","ts":"2023-11-01T01:43:21Z","msg":"Starting workers","controller":"kamelet-controller","controllerGroup":"camel.apache.org","controllerKind":"Kamelet","worker count":5}
   {"level":"info","ts":"2023-11-01T01:43:21Z","msg":"Starting workers","controller":"catalog-controller","controllerGroup":"camel.apache.org","controllerKind":"CamelCatalog","worker count":5}
   {"level":"info","ts":"2023-11-01T01:43:21Z","msg":"Starting workers","controller":"integrationplatform-controller","worker count":1}
   {"level":"info","ts":"2023-11-01T01:43:21Z","msg":"Starting workers","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","worker count":1}
   {"level":"info","ts":"2023-11-01T01:43:21Z","logger":"camel-k.controller.integrationplatform","msg":"Invoking action initialize","request-namespace":"kamel","request-name":"camel-k","api-version":"camel.apache.org/v1","kind":"IntegrationPlatform","ns":"kamel","name":"camel-k"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","logger":"camel-k.controller.integrationplatform","msg":"Initializing IntegrationPlatform","request-namespace":"kamel","request-name":"camel-k","api-version":"camel.apache.org/v1","kind":"IntegrationPlatform","ns":"kamel","name":"camel-k"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","msg":"Starting workers","controller":"integrationkit-controller","worker count":1}
   {"level":"info","ts":"2023-11-01T01:43:21Z","logger":"camel-k","msg":"RuntimeVersion set to 3.2.0"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","logger":"camel-k","msg":"BaseImage set to eclipse-temurin:17"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","logger":"camel-k","msg":"LocalRepository set to /etc/maven/m2"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","logger":"camel-k","msg":"Timeout set to {5m0s}"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","logger":"camel-k","msg":"Maven Timeout set to 5m0s"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","msg":"Starting workers","controller":"kamelet-binding-controller","worker count":1}
   {"level":"info","ts":"2023-11-01T01:43:21Z","msg":"Starting workers","controller":"kamelet-binding-controller","worker count":1}
   {"level":"info","ts":"2023-11-01T01:43:21Z","logger":"camel-k.controller.integrationplatform","msg":"State transition","request-namespace":"kamel","request-name":"camel-k","api-version":"camel.apache.org/v1","kind":"IntegrationPlatform","ns":"kamel","name":"camel-k","phase-from":"","phase-to":"Creating"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","logger":"camel-k.controller.integrationplatform","msg":"Invoking action create","request-namespace":"kamel","request-name":"camel-k","api-version":"camel.apache.org/v1","kind":"IntegrationPlatform","ns":"kamel","name":"camel-k"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","logger":"camel-k.controller.integrationplatform","msg":"Installing camel catalog: /camel-catalog-3.2.0.yaml","request-namespace":"kamel","request-name":"camel-k","api-version":"camel.apache.org/v1","kind":"IntegrationPlatform","ns":"kamel","name":"camel-k"}
   {"level":"info","ts":"2023-11-01T01:43:21Z","logger":"camel-k.controller.integrationplatform","msg":"Copying platform annotations to catalog: camel-catalog-3.2.0","request-namespace":"kamel","request-name":"camel-k","api-version":"camel.apache.org/v1","kind":"IntegrationPlatform","ns":"kamel","name":"camel-k"}
   {"level":"info","ts":"2023-11-01T01:43:25Z","logger":"camel-k.controller.catalog","msg":"Invoking action initialize","request-namespace":"kamel","request-name":"camel-catalog-3.2.0","api-version":"camel.apache.org/v1","kind":"CamelCatalog","ns":"kamel","name":"camel-catalog-3.2.0"}
   {"level":"info","ts":"2023-11-01T01:43:25Z","logger":"camel-k.controller.catalog","msg":"Initializing CamelCatalog","request-namespace":"kamel","request-name":"camel-catalog-3.2.0","api-version":"camel.apache.org/v1","kind":"CamelCatalog","ns":"kamel","name":"camel-catalog-3.2.0"}
   {"level":"info","ts":"2023-11-01T01:43:30Z","logger":"camel-k.controller.integrationplatform","msg":"State transition","request-namespace":"kamel","request-name":"camel-k","api-version":"camel.apache.org/v1","kind":"IntegrationPlatform","ns":"kamel","name":"camel-k","phase-from":"Creating","phase-to":"Ready"}
   {"level":"info","ts":"2023-11-01T01:43:30Z","logger":"camel-k.controller.integrationplatform","msg":"Invoking action monitor","request-namespace":"kamel","request-name":"camel-k","api-version":"camel.apache.org/v1","kind":"IntegrationPlatform","ns":"kamel","name":"camel-k"}
   {"level":"info","ts":"2023-11-01T01:43:35Z","logger":"camel-k.controller.catalog","msg":"Invoking action initialize","request-namespace":"kamel","request-name":"camel-catalog-3.2.0","api-version":"camel.apache.org/v1","kind":"CamelCatalog","ns":"kamel","name":"camel-catalog-3.2.0"}
   {"level":"info","ts":"2023-11-01T01:43:35Z","logger":"camel-k.controller.catalog","msg":"Initializing CamelCatalog","request-namespace":"kamel","request-name":"camel-catalog-3.2.0","api-version":"camel.apache.org/v1","kind":"CamelCatalog","ns":"kamel","name":"camel-catalog-3.2.0"}
   {"level":"info","ts":"2023-11-01T01:43:35Z","logger":"camel-k.controller.catalog","msg":"State transition","request-namespace":"kamel","request-name":"camel-catalog-3.2.0","api-version":"camel.apache.org/v1","kind":"CamelCatalog","ns":"kamel","name":"camel-catalog-3.2.0","phase-from":"","phase-to":"Ready"}
   {"level":"info","ts":"2023-11-01T01:43:35Z","logger":"camel-k.controller.catalog","msg":"Invoking action monitor","request-namespace":"kamel","request-name":"camel-catalog-3.2.0","api-version":"camel.apache.org/v1","kind":"CamelCatalog","ns":"kamel","name":"camel-catalog-3.2.0"}
   {"level":"info","ts":"2023-11-01T01:43:58Z","logger":"camel-k.controller.integration","msg":"State transition","request-namespace":"kamel","request-name":"teste","api-version":"camel.apache.org/v1","kind":"Integration","ns":"kamel","name":"teste","phase-from":"","phase-to":"Initialization"}
   {"level":"info","ts":"2023-11-01T01:43:58Z","logger":"camel-k.controller.integration","msg":"Initializing Integration","request-namespace":"kamel","request-name":"teste","api-version":"camel.apache.org/v1","kind":"Integration","ns":"kamel","name":"teste"}
   {"level":"info","ts":"2023-11-01T01:43:58Z","logger":"camel-k.controller.integration","msg":"State transition","request-namespace":"kamel","request-name":"teste","api-version":"camel.apache.org/v1","kind":"Integration","ns":"kamel","name":"teste","phase-from":"Initialization","phase-to":"Error"}
   {"level":"info","ts":"2023-11-01T01:43:58Z","logger":"camel-k.controller.integration","msg":"Integration error","request-namespace":"kamel","request-name":"teste","api-version":"camel.apache.org/v1","kind":"Integration","ns":"kamel","name":"teste","reason":"InitializationFailed","error-message":"error during trait customization: kamelets trait configuration failed: component not found for uri \"direct?name=my-route\" in camel catalog runtime version 3.2.0"}
   {"level":"error","ts":"2023-11-01T01:43:58Z","msg":"Reconciler error","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","Integration":{"name":"teste","namespace":"kamel"},"namespace":"kamel","name":"teste","reconcileID":"22de2544-06da-4e1f-8cfb-9f90aebd5c65","error":"error during trait customization: kamelets trait configuration failed: component not found for uri \"direct?name=my-route\" in camel catalog runtime version 3.2.0","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.15.2/pkg/internal/controller/controller.go:324\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.15.2/pkg/internal/controller/controller.go:265\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.15.2/pkg/internal/controller
 /controller.go:226"}
   {"level":"info","ts":"2023-11-01T01:45:03Z","logger":"camel-k.controller.integration","msg":"State transition","request-namespace":"kamel","request-name":"teste","api-version":"camel.apache.org/v1","kind":"Integration","ns":"kamel","name":"teste","phase-from":"","phase-to":"Initialization"}
   {"level":"info","ts":"2023-11-01T01:45:03Z","logger":"camel-k.controller.integration","msg":"Initializing Integration","request-namespace":"kamel","request-name":"teste","api-version":"camel.apache.org/v1","kind":"Integration","ns":"kamel","name":"teste"}
   {"level":"info","ts":"2023-11-01T01:45:03Z","logger":"camel-k.controller.integration","msg":"State transition","request-namespace":"kamel","request-name":"teste","api-version":"camel.apache.org/v1","kind":"Integration","ns":"kamel","name":"teste","phase-from":"Initialization","phase-to":"Error"}
   {"level":"info","ts":"2023-11-01T01:45:03Z","logger":"camel-k.controller.integration","msg":"Integration error","request-namespace":"kamel","request-name":"teste","api-version":"camel.apache.org/v1","kind":"Integration","ns":"kamel","name":"teste","reason":"InitializationFailed","error-message":"error during trait customization: kamelets trait configuration failed: component not found for uri \"direct?name=my-route\" in camel catalog runtime version 3.2.0"}
   {"level":"error","ts":"2023-11-01T01:45:03Z","msg":"Reconciler error","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","Integration":{"name":"teste","namespace":"kamel"},"namespace":"kamel","name":"teste","reconcileID":"6f1b8c1d-8198-4288-adeb-9794f152bf10","error":"error during trait customization: kamelets trait configuration failed: component not found for uri \"direct?name=my-route\" in camel catalog runtime version 3.2.0","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.15.2/pkg/internal/controller/controller.go:324\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.15.2/pkg/internal/controller/controller.go:265\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.15.2/pkg/internal/controller
 /controller.go:226"}
   {"level":"info","ts":"2023-11-01T01:45:03Z","logger":"camel-k.controller.integration","msg":"Initializing Integration","request-namespace":"kamel","request-name":"teste","api-version":"camel.apache.org/v1","kind":"Integration","ns":"kamel","name":"teste"}
   {"level":"info","ts":"2023-11-01T01:45:03Z","logger":"camel-k.controller.integration","msg":"State transition","request-namespace":"kamel","request-name":"teste","api-version":"camel.apache.org/v1","kind":"Integration","ns":"kamel","name":"teste","phase-from":"Initialization","phase-to":"Error"}
   {"level":"info","ts":"2023-11-01T01:45:03Z","logger":"camel-k.controller.integration","msg":"Integration error","request-namespace":"kamel","request-name":"teste","api-version":"camel.apache.org/v1","kind":"Integration","ns":"kamel","name":"teste","reason":"InitializationFailed","error-message":"error during trait customization: kamelets trait configuration failed: component not found for uri \"direct?name=my-route\" in camel catalog runtime version 3.2.0"}
   {"level":"error","ts":"2023-11-01T01:45:03Z","msg":"Reconciler error","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","Integration":{"name":"teste","namespace":"kamel"},"namespace":"kamel","name":"teste","reconcileID":"f9d66b88-3727-456f-9592-297ef8af849c","error":"error during trait customization: kamelets trait configuration failed: component not found for uri \"direct?name=my-route\" in camel catalog runtime version 3.2.0","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.15.2/pkg/internal/controller/controller.go:324\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.15.2/pkg/internal/controller/controller.go:265\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.15.2/pkg/internal/controller
 /controller.go:226"}
   {"level":"info","ts":"2023-11-01T01:51:41Z","logger":"camel-k.cmd","msg":"v1apha1.KameletBinding is deprecated, please, use v1.Pipe instead\n"}
   {"level":"info","ts":"2023-11-01T01:56:27Z","logger":"camel-k.controller.integration","msg":"State transition","request-namespace":"kamel","request-name":"teste","api-version":"camel.apache.org/v1","kind":"Integration","ns":"kamel","name":"teste","phase-from":"","phase-to":"Initialization"}
   {"level":"info","ts":"2023-11-01T01:56:27Z","logger":"camel-k.controller.integration","msg":"Initializing Integration","request-namespace":"kamel","request-name":"teste","api-version":"camel.apache.org/v1","kind":"Integration","ns":"kamel","name":"teste"}
   {"level":"info","ts":"2023-11-01T01:56:27Z","logger":"camel-k.controller.integration","msg":"State transition","request-namespace":"kamel","request-name":"teste","api-version":"camel.apache.org/v1","kind":"Integration","ns":"kamel","name":"teste","phase-from":"Initialization","phase-to":"Error"}
   {"level":"info","ts":"2023-11-01T01:56:27Z","logger":"camel-k.controller.integration","msg":"Integration error","request-namespace":"kamel","request-name":"teste","api-version":"camel.apache.org/v1","kind":"Integration","ns":"kamel","name":"teste","reason":"InitializationFailed","error-message":"error during trait customization: kamelets trait configuration failed: component not found for uri \"direct?name=my-route\" in camel catalog runtime version 3.2.0"}
   {"level":"error","ts":"2023-11-01T01:56:27Z","msg":"Reconciler error","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","Integration":{"name":"teste","namespace":"kamel"},"namespace":"kamel","name":"teste","reconcileID":"f660f1aa-2498-4fc4-827e-a1a7a3447a01","error":"error during trait customization: kamelets trait configuration failed: component not found for uri \"direct?name=my-route\" in camel catalog runtime version 3.2.0","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.15.2/pkg/internal/controller/controller.go:324\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.15.2/pkg/internal/controller/controller.go:265\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.15.2/pkg/internal/controller
 /controller.go:226"}
   ```
   
   
   ### Camel K version
   
   v2.1.0


-- 
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: commits-unsubscribe@camel.apache.org.apache.org

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


Re: [I] Support YAML DSL routes configuration [camel-k]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #4893:
URL: https://github.com/apache/camel-k/issues/4893#issuecomment-1922538674

   This issue has been automatically marked as stale due to 90 days of inactivity.
   It will be closed if no further activity occurs within 15 days.
   If you think that’s incorrect or the issue should never stale, please simply write any comment.
   Thanks for your contributions!


-- 
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: commits-unsubscribe@camel.apache.org

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


Re: [I] Integration Issue with Karavan 4.0.0 component Direct, [camel-k]

Posted by "erick-leao (via GitHub)" <gi...@apache.org>.
erick-leao commented on issue #4893:
URL: https://github.com/apache/camel-k/issues/4893#issuecomment-1791781864

   @lburgazzoli 
   
   Oh yes, I had forgotten to mention that I had changed the k8s file to exactly what you commented on, and it had worked.
   
   when I changed the excerpt below manual:
   ```yaml
       - rest:
          ....
           to: my-rote
          ....
     - route:
         ....
           uri: my-rote
        ....
   ```
   to
   ```yaml
       - rest:
          ....
           to: direct:my-rote
          ....
     - route:
         ....
           uri: direct:my-rote
        ....
    ```
   That worked
   
   Here's the thread I made on Zulip:
   
   https://camel.zulipchat.com/#narrow/stream/322293-camel-karavan/topic/Configuration.20Camel.20Component.20Direct.20Build.20Error
   
   


-- 
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: commits-unsubscribe@camel.apache.org

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


Re: [I] Integration Issue with Karavan 4.0.0 component Direct, [camel-k]

Posted by "lburgazzoli (via GitHub)" <gi...@apache.org>.
lburgazzoli commented on issue #4893:
URL: https://github.com/apache/camel-k/issues/4893#issuecomment-1791679575

   can you try to change the from uri to `direct:my-route` and remove the `parameters` property?


-- 
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: commits-unsubscribe@camel.apache.org

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


Re: [I] Integration Issue with Karavan 4.0.0 component Direct, [camel-k]

Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez commented on issue #4893:
URL: https://github.com/apache/camel-k/issues/4893#issuecomment-1792046085

   It seems it was not a bug but a typo in the definition of the component. Feel free to close if there is nothing else to follow up with.


-- 
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: commits-unsubscribe@camel.apache.org

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


Re: [I] Support YAML DSL routes configuration [camel-k]

Posted by "claudio4j (via GitHub)" <gi...@apache.org>.
claudio4j commented on issue #4893:
URL: https://github.com/apache/camel-k/issues/4893#issuecomment-2160158052

   This was resolved in the main branch and will be released as part of next version.


-- 
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: commits-unsubscribe@camel.apache.org

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


Re: [I] Integration Issue with Karavan 4.0.0 component Direct, [camel-k]

Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez commented on issue #4893:
URL: https://github.com/apache/camel-k/issues/4893#issuecomment-1792052115

   I've analyzed the problem. What it really happens is that Camel K is not able to parse a route such:
   ```
     - route:
         from:
           parameters:
             name: my-rote
           steps:
   ...
           uri: direct
   ```
   into the correspondant `direct:my-rote`. More than a bug it's a limitation in how we discover dependencies (see #1266)


-- 
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: commits-unsubscribe@camel.apache.org

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


Re: [I] Support YAML DSL routes configuration [camel-k]

Posted by "realMartinez (via GitHub)" <gi...@apache.org>.
realMartinez commented on issue #4893:
URL: https://github.com/apache/camel-k/issues/4893#issuecomment-2026807766

   I will take a look at this.


-- 
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: commits-unsubscribe@camel.apache.org

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


Re: [I] Support YAML DSL routes configuration [camel-k]

Posted by "claudio4j (via GitHub)" <gi...@apache.org>.
claudio4j closed issue #4893: Support YAML DSL routes configuration
URL: https://github.com/apache/camel-k/issues/4893


-- 
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: commits-unsubscribe@camel.apache.org

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