You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Gaelle Fournier (Jira)" <ji...@apache.org> on 2025/10/01 14:03:00 UTC

[jira] [Assigned] (CAMEL-22340) camel jbang kubernetes not parsing env vars from .properties

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

Gaelle Fournier reassigned CAMEL-22340:
---------------------------------------

    Assignee: 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)