You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2019/12/11 11:33:46 UTC

[GitHub] [camel-k] nicolaferraro commented on issue #1133: Allow to configure kamel CLI with env vars and configuration files

nicolaferraro commented on issue #1133: Allow to configure kamel CLI with env vars and configuration files
URL: https://github.com/apache/camel-k/pull/1133#issuecomment-564500930
 
 
   > Question about:
   > 
   > > multi value flags are expressed through the plural for of the flag
   > 
   > Does that apply to everything? E.g if I want to apply a set of environment variables to my integration via the `--env` flag of `kamel run`.
   > 
   > The singular version works:
   > 
   > ```
   > KAMEL_RUN_ENV="FOO=BAR,CHEESE=WINE" kamel run examples/Sample.java
   > ```
   > 
   > The plural version does not:
   > 
   > ```
   > KAMEL_RUN_ENVS="FOO=BAR,CHEESE=WINE" kamel run examples/Sample.java
   > ```
   > 
   > That's seems a bug as it is supposed to be working. It may be an issue as the plural form is computed and maybe not working for that, will have a look. In any case the singular version is always there but does not look very nice for multi val flags
   
   A different thing (nice to have?) would be to have a named config for each runnable integration, like:
   ```
   kamel:
     install:
       kits:
         - js
         - yaml
     run:
       hello.groovy:
         dependencies:
         - "camel:jackson"
   ```
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services