Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-20576

camel-jbang-plugin-k run command kebab-case parsing invalid

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.4.0, 4.4.1
    • 4.4.2, 4.5.0
    • camel-jbang
    • 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'

       

      Attachments

        Activity

          People

            claudio4j Claudio Miranda
            gfournie Gaëlle Fournier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: