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

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • Camel-K-GA
    • Camel-K-GA
    • Camel-K
    • None

      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'").

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

                Created:
                Updated:
                Resolved: