Details
-
Bug
-
Resolution: Done
-
Major
-
Camel-K-GA
-
None
-
False
-
False
-
%
-
Todo
-
Undefined
-
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'").