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

Claudio Miranda resolved CAMEL-20576.
-------------------------------------
    Resolution: Fixed

> camel-jbang-plugin-k run command kebab-case parsing invalid
> -----------------------------------------------------------
>
>                 Key: CAMEL-20576
>                 URL: https://issues.apache.org/jira/browse/CAMEL-20576
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jbang
>    Affects Versions: 4.4.0, 4.4.1
>         Environment: Jbang version : 0.114.0
> Camel version: 4.4.0
> Camel k: 2.3.0-SNAPSHOT
>            Reporter: Gaëlle Fournier
>            Assignee: Claudio Miranda
>            Priority: Minor
>
> The run command ignore the kebab-case trait properties.
> The jbang camel k command:
> {code:java}
> $ camel k run files/Java.java -t affinity.enabled=true -t 
> "affinity.node-affinity-labels=kubernetes.io/hostname in(minikube)"{code}
> will result in the following integration CRD configuration:
> {code:java}
>   traits:
>     affinity:
>       enabled: true
>       podAffinity: false
>       podAntiAffinity: false{code}
>  
> In comparaison the kamel command:
> {code:java}
> $ kamel run files/Java.java -t affinity.enabled=true -t 
> "affinity.node-affinity-labels=kubernetes.io/hostname in(minikube)"
> {code}
> will result in the following integration CRD configuration:
> {code:java}
>   traits:
>     affinity:
>       enabled: true
>       nodeAffinityLabels:
>       - kubernetes.io/hostname in(minikube){code}
>  
> *Note:* using the camel case in the jbang camel k command should be a 
> workaround after fix https://issues.apache.org/jira/browse/CAMEL-20559:
> {code:java}
> $ camel k run files/Java.java -t affinity.enabled=true -t 
> affinity.nodeAffinityLabels='kubernetes.io/hostname=minikube'{code}
>  



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

Reply via email to