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

   Part of #3162, group 3: this moves the 4 demo Kamelets out of the catalog 
and into `examples/kamelets/`. The decision on that group was to keep the demos 
as source code only, not in the released JAR.
   
   | Kamelet | What it is |
   |---|---|
   | `bitcoin-source` | A fixed Binance BTC/USDT ticker, not a Bitcoin node |
   | `chuck-norris-source` | Random jokes from api.chucknorris.io |
   | `earthquake-source` | USGS earthquake feed; the developer guide builds it 
step by step |
   | `wttrin-source` | Weather from wttr.in |
   
   ### What changes
   
   - **Moved:** the Kamelets now live in `examples/kamelets/`. The build copies 
only `kamelets/*.kamelet.yaml` into `library/camel-kamelets`, so they are no 
longer in the JAR, the index or the catalog website.
   - **New README:** `examples/kamelets/README.md` says what each demo does and 
how to run one with `camel run route.yaml 
--local-kamelet-dir=examples/kamelets`. Its example route was run and works.
   - **Version bump:** `update-kamelets.xml` now also updates the 
`catalog.version` annotation of the examples at release time, so they stay in 
step with the catalog.
   - **Developer guide:** the walk-through that builds `earthquake-source` now 
says where the complete file is.
   - **Integration test:** the itest module copies `examples/kamelets` into its 
test classes. `earthquake-to-http` passes the Kamelet to `camel run` through 
the Citrus `resources` list, because `--local-kamelet-dir` takes only one 
directory.
   - **Removed:** the doc partials, the pipe templates, the `wttrin-source` 
line of `KameletsCatalogTest`, and the `bitcoin`, `chuck_norris` and `wttrin` 
entries of the public `KameletPrefixSchemeEnum`.
   
   `nav.adoc`, `kamelets-index.json` and the catalog SBOM are regenerated.
   
   The examples are no longer checked by the catalog validator, because it 
reads only `kamelets/`.
   
   This PR, #3165 and #3166 all regenerate the same files. Whichever merges 
later will be rebased and regenerated.
   
   ### Verification
   
   - `./mvnw clean install` passed twice, the first time with `-DskipTests`.
   - `CommonIT#earthquake` passed. With the URL in the example Kamelet broken 
on purpose, it failed, so the test really uses the copy in `examples/kamelets` 
and not the Kamelet still in the SNAPSHOT JAR.
   
   _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