davsclaus opened a new pull request, #30753:
URL: https://github.com/apache/camel/pull/30753

   [CAMEL-27535](https://issues.apache.org/jira/browse/CAMEL-27535)
   
   The camel-kamelet docs explain how to write a Kamelet, but not how to set 
its parameters outside the endpoint URI, or how to test one. This PR changes 
docs only.
   
   **`kamelet-component.adoc`: a new "Configuring a Kamelet" section**
   - The four places a parameter is set, and which one wins: endpoint parameter 
> `CAMEL_KAMELET_<NAME>_<PARAMETER>` > `camel.kamelet.<name>.<parameter>` > 
default.
   - The per-use id `kamelet:<name>/<id>`, with 
`camel.kamelet.<name>.<id>.<parameter>` and 
`CAMEL_KAMELET_<NAME>_<ID>_<PARAMETER>`.
   - Once any `template-properties`/`route-properties` value applies to a 
Kamelet, no `camel.kamelet.*` property is read for it.
   - The error for a missing required parameter.
   - The names reserved by the `kamelet` endpoint. This is the same list the 
catalog build rejects.
   - That an unset `{{?user}}` takes `$USER` (CAMEL-27498).
   
   **`kamelet-custom.adoc`: a new "Testing a Kamelet" section**
   - A Citrus test that runs the page's `orders` route with its three example 
Kamelets through `camel test run`, and checks that only the allowed fields are 
left.
   
   **Checks**
   - Every statement was checked on 4.24.0-SNAPSHOT with `camel run` and a test 
Kamelet that echoes its parameters.
   - The test passes with `camel test run`. A copy that expects `"SE"` instead 
of `"DK"` fails, so the test does check the filter.
   
   **Found along the way, not changed here:** the javadoc of 
`Kamelet.extractKameletEnvironmentVariables` says 
`CAMEL_KAMELET_AWSS3SOURCE_BUCKETNAMEORARN` works. Only the `_`-separated form 
works.
   
   The Kamelet catalog side, a user guide and a testing guide, is 
apache/camel-kamelets#3394. The new pages link to those pages on the catalog's 
`next` docs.
   
   _Claude Code on behalf of Claus Ibsen_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


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

Reply via email to