apache / apache/camel-k-examples

Some examples are not working: `kamel run --config|--resource file:` no longer available

Open
#91 11 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
92
Forks
63
PR merge metrics
No merged PRs in 30d

Description

From Camel K version 2.0 `kamel run --config|--resource file:` [is no longer available](https://camel.apache.org/blog/2023/07/camel-k-2-0/#remove-deprecated-cli-commands). Therefore, the following examples will no longer work as expected:

- [generic-examples/modeline/modeline-config-file-route.groovy](https://github.com/apache/camel-k-examples/blob/main/generic-examples/modeline/modeline-config-file-route.groovy)
- [generic-examples/user-config/config-file-route.groovy](https://github.com/apache/camel-k-examples/blob/main/generic-examples/user-config/config-file-route.groovy)
- [generic-examples/user-config/resource-file-base64-encoded-route.groovy](https://github.com/apache/camel-k-examples/blob/main/generic-examples/user-config/resource-file-base64-encoded-route.groovy)
- [generic-examples/user-config/resource-file-binary-route.groovy](https://github.com/apache/camel-k-examples/blob/main/generic-examples/user-config/resource-file-binary-route.groovy)
- [generic-examples/user-config/resource-file-location-route.groovy](https://github.com/apache/camel-k-examples/blob/main/generic-examples/user-config/resource-file-location-route.groovy)
- [generic-examples/user-config/resource-file-route.groovy](https://github.com/apache/camel-k-examples/blob/main/generic-examples/user-config/resource-file-route.groovy)

Contributor guide

No contributing guide indexed for this repository

Research direction

Review the six listed Groovy examples under generic-examples/modeline and generic-examples/user-config, starting with their kamel run usage and the Camel K 2.0 removal notice. Update the examples so they no longer depend on the unavailable file-based --config or --resource forms, then verify that each example works with the supported Camel K command flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.