nicolaferraro opened a new pull request #2183:
URL: https://github.com/apache/camel-k/pull/2183


   <!-- Description -->
   
   Fix #2083
   
   This works, but I'm looking for better ways..
   
   Current syntax is like:
   
   ```
   # Unqualified references default to "kamelet:"
   kamel bind telegram-source broker:default -p source.authorizationToken=xxx
   # Bound elements can also be full refs and Camel URIs
   kamel bind kafka.strimzi.io/v1beta1:KafkaTopic:test log:info
   ```
   
   So there's a single "-p" option with properties that need to be prefixed 
with `source.` or `sink.`.
   This avoid having to define e.g. `--source-property` and `--sink-property`, 
which is the other option I've considered.
   
   But both approaches fail when it comes for steps. It's easy to add a 
`--step` to add other endpoints, but how to specify their related properties? 
Like: `-p step-0.prefix=World -p step-1.prefix=Hello`?
   
   <!--
   Enter your extended release note in the below block. If the PR requires
   additional action from users switching to the new release, include the string
   "action required". If no release note is required, write "NONE". 
   
   You can (optionally) mark this PR with labels "kind/bug" or "kind/feature" 
to make sure
   the text is added to the right section of the release notes. 
   -->
   
   **Release Note**
   ```release-note
   NONE
   ```
   


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to