Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
4.4.0, 4.4.1
-
None
-
Jbang version : 0.114.0
Camel version: 4.4.0
Camel k: 2.3.0-SNAPSHOT
-
Unknown
Description
The run command ignore the kebab-case trait properties.
The jbang camel k command:
$ camel k run files/Java.java -t affinity.enabled=true -t "affinity.node-affinity-labels=kubernetes.io/hostname in(minikube)"
will result in the following integration CRD configuration:
traits: affinity: enabled: true podAffinity: false podAntiAffinity: false
In comparaison the kamel command:
$ kamel run files/Java.java -t affinity.enabled=true -t "affinity.node-affinity-labels=kubernetes.io/hostname in(minikube)"
will result in the following integration CRD configuration:
traits:
affinity:
enabled: true
nodeAffinityLabels:
- kubernetes.io/hostname in(minikube)
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:
$ camel k run files/Java.java -t affinity.enabled=true -t affinity.nodeAffinityLabels='kubernetes.io/hostname=minikube'