You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Cameron Fitzwater (Jira)" <ji...@apache.org> on 2025/08/12 14:57:00 UTC
[jira] [Created] (CAMEL-22340) camel jbang kubernetes not parsing env vars from .properties
Cameron Fitzwater created CAMEL-22340:
-----------------------------------------
Summary: 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
Reporter: Cameron Fitzwater
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)