Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-16900

prometheus trait: the "enabled" property automatically inferred causes error if set by the user

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: Camel-K-GA
    • Fix Version/s: Camel-K-GA
    • Component/s: Camel-K
    • Labels:
      None

      Description

      executing this command on camel-k upstream 1.4:

      kamel run --name metrics --trait prometheus.enabled=true  Metrics.java -w --dependency mvn:com.github.openshift-integration:camel-k-example-metrics:1.0.0-SNAPSHOT
      

      i got this message:

      Modeline options have been loaded from source files
      Full command: kamel run --name metrics --trait prometheus.enabled=true Metrics.java -w --dependency mvn:com.github.openshift-integration:camel-k-example-metrics:1.0.0-SNAPSHOT --trait=prometheus.enabled=true 
      Error: 1 error(s) decoding:
      
      * 'enabled' expected type 'bool', got unconvertible type '[]string'
      
      

      Metrics.java is taken from: https://github.com/apache/camel-k/blob/main/e2e/yaks/openshift/monitoring/Metrics.java .
      It seems the "enabled" property is both inferred from the integration and got from command line, causing a sort of double specification error ("type '[]string'").

        Attachments

          Activity

            People

            Assignee:
            claudio4j Claudio Miranda
            Reporter:
            rhn-support-vgrazian Vitor Graziano
            Tester:
            Mario Majernik Mario Majernik
            Involved:
            Heiko Braun
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: