You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "hxxxi-malog (via GitHub)" <gi...@apache.org> on 2026/09/19 03:19:34 UTC

[I] DSL dependency analysis should detect delegate components inside `master:` URIs [camel-k]

hxxxi-malog opened a new issue, #6830:
URL: https://github.com/apache/camel-k/issues/6830

   ### Requirement
   
   **Background**
   
   The deprecated `master` trait has been removed (#6807). Besides creating the RBAC and configuring the cluster service, the trait used to perform one more hidden task: it parsed `master:<lockName>:<delegate-scheme>[:...]` URIs found in the routes and automatically added the wrapped component to the Integration dependencies (see the removed `findAdditionalDependencies()` in `pkg/trait/master.go`, including consumer dependency IDs).
   
   **Current behavior**
   
   When parsing the DSL, the dependency analysis only recognizes the outer `master` scheme for a URI such as:
   
   ```java
   from("master:lock:timer:tick")
   ```
   
   The wrapped `timer` component is not detected, so its dependency is not added to the kit. Users migrating to the properties-based leader election must remember to declare the delegate component manually (e.g. `-d camel:timer`), otherwise the Integration fails at startup with a confusing error:
   
   ```
   Failed to create route ... because: No endpoint could be found for: timer://tick,
   please check your classpath contains the needed Camel component jar.
   ```
   
   **Expected behavior**
   
   Dependency detection should unwrap `master:<lockName>:<delegate-scheme>[:...]` endpoints during DSL parsing and add the delegate component dependency automatically, as already done for regular components. The removed trait logic (`findAdditionalDependencies()` + `CamelCatalog.GetArtifactByScheme()` + `GetConsumerDependencyIDs()`) can serve as a reference implementation.
   
   **How to reproduce**
   
   Run an Integration with `from("master:lock:timer:tick")` declaring only `-d camel:kubernetes` and the `quarkus.camel.cluster.kubernetes.*` properties: the pod never becomes ready with the error above. `e2e/common/traits/master_test.go` currently works around this by declaring `-d camel:timer` explicitly.
   
   **References**
   
   - PR #6807 (master trait removal)
   - `pkg/metadata/` (dependency analysis entry point: `ExtractAll`)
   


-- 
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] DSL dependency analysis should detect delegate components inside `master:` URIs [camel-k]

Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez closed issue #6830: DSL dependency analysis should detect delegate components inside `master:` URIs
URL: https://github.com/apache/camel-k/issues/6830


-- 
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] DSL dependency analysis should detect delegate components inside `master:` URIs [camel-k]

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

   While we wait #6456 to be completed, this could be a good fix to add. Basically we need to add a new regexp to detect the component in the different DSL we support.


-- 
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