[ 
https://issues.apache.org/jira/browse/CAMEL-22340?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Work on CAMEL-22340 started by Gaelle Fournier.
-----------------------------------------------
> camel jbang kubernetes not parsing env vars from .properties
> ------------------------------------------------------------
>
>                 Key: CAMEL-22340
>                 URL: https://issues.apache.org/jira/browse/CAMEL-22340
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jbang
>    Affects Versions: 4.13.0
>            Reporter: Cameron Fitzwater
>            Assignee: Gaelle Fournier
>            Priority: Minor
>             Fix For: 4.x
>
>
> In application-dev.properties, the documented syntax is not working (along 
> with other modified attempts):
>  
> camel.jbang.trait.environment.vars=MY_VAR=my value  ## WARN: property 
> 'environment.vars=MY_VAR=my value'' has a bad format (should be 'key=value'), 
> skipping.
>  
> camel.jbang.trait.environment.vars=MY_VAR="my value"  ## WARN: property 
> 'environment.vars=MY_VAR="my value"'' has a bad format (should be 
> 'key=value'), skipping.
>  
> camel.jbang.trait.environment.vars='MY_VAR=my value'  ## WARN: property 
> 'environment.vars='MY_VAR=my value''' has a bad format (should be 
> 'key=value'), skipping.
>  
> camel.jbang.trait.environment='MY_VAR=my value'  
> java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
>      at 
> org.apache.camel.dsl.jbang.core.commands.kubernetes.traits.TraitHelper.parseTraits(TraitHelper.java:74)
>  
>  
> Defining it in the command line via `--trait environment.vars=MY_ENV=foo` 
> does work.
>  
> Docs:
> https://camel.apache.org/manual/camel-jbang-kubernetes.html#_environment_variables
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to