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

    • Bug
    • Resolution: Done
    • Major
    • Camel-K-GA
    • Camel-K-GA
    • Camel-K
    • None
    • False
    • False
    • % %
    • Todo
    • Undefined
    • Hide

      just run an integration with metrics component inside and add a prometheus.enabled trait value when you run through the command line.

      Show
      just run an integration with metrics component inside and add a prometheus.enabled trait value when you run through the command line.

    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

            cmiranda@redhat.com Claudio Miranda
            rhn-support-vgrazian Vitor Graziano
            Mario Majernik Mario Majernik
            Heiko Braun
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: