You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "Leo6Leo (via GitHub)" <gi...@apache.org> on 2024/03/05 16:47:53 UTC

[I] Wrong documentation in Kamelet Catalog for sinks [camel-k]

Leo6Leo opened a new issue, #5217:
URL: https://github.com/apache/camel-k/issues/5217

   ### What happened?
   
   Hello maintainers at Camel-K, please see the issue description below. And let me know if there are any issues, thanks!
   
   **Title**: Wrong `kamel bind` Command Order in Documentation for Sink Kamelets
   
   **Description**:
   
   Found a mistake in the [Kamelet Catalog documentation](https://camel.apache.org/camel-kamelets/next/slack-sink.html#_procedure_for_using_the_kamel_cli) for the `slack-sink` and other sinks. The `kamel bind` command's order is incorrect. It should be `kamel bind [source] [sink] ... [flags]`.
   
   Same problem appears for other sinks too. 
   - [Snowflake sink](https://camel.apache.org/camel-kamelets/next/snowflake-sink.html#_procedure_for_using_the_kamel_cli)
   - [AWS Lambda Sink](https://camel.apache.org/camel-kamelets/next/aws-lambda-sink.html#_procedure_for_using_the_kamel_cli)
   - ...
   
   **Current Wrong Example**:
   
   ```
   kamel bind slack-sink -p "sink.channel=#myroom" -p "sink.webhookUrl=The Webhook URL" channel:mychannel
   ```
   
   **Correct Command Should Be**:
   
   ```
   kamel bind channel:mychannel -p "sink.channel=#mychannel" -p "sink.webhookUrl=The Webhook URL" slack-sink
   ```
   
   **Solution**:
   Fix the command order in the documentation to match the correct format.
   
   
   ### Steps to reproduce
   
   See the documentation
   
   ### Relevant log output
   
   _No response_
   
   ### Camel K version
   
   v2.2.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