You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claudio Miranda (Jira)" <ji...@apache.org> on 2024/03/19 13:54:00 UTC
[jira] [Updated] (CAMEL-20576) camel-jbang-plugin-k run command kebab-case parsing invalid
[ https://issues.apache.org/jira/browse/CAMEL-20576?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claudio Miranda updated CAMEL-20576:
------------------------------------
Summary: camel-jbang-plugin-k run command kebab-case parsing invalid (was: camel-jbang-plugin-k run command snake-case parsing invalid)
> 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 snake-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)