Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicated trait set as modeline and kamel run parameters causes error #2466

Closed
claudio4j opened this issue Jun 29, 2021 · 0 comments · Fixed by #2467
Closed

Duplicated trait set as modeline and kamel run parameters causes error #2466

claudio4j opened this issue Jun 29, 2021 · 0 comments · Fixed by #2467

Comments

@claudio4j
Copy link
Contributor

executing this 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

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

claudio4j added a commit to claudio4j/camel-k that referenced this issue Jun 29, 2021
claudio4j added a commit to claudio4j/camel-k that referenced this issue Jul 1, 2021
claudio4j added a commit to claudio4j/camel-k that referenced this issue Jul 1, 2021
claudio4j added a commit to claudio4j/camel-k that referenced this issue Jul 1, 2021
claudio4j added a commit to claudio4j/camel-k that referenced this issue Jul 1, 2021
claudio4j added a commit to claudio4j/camel-k that referenced this issue Jul 1, 2021
claudio4j added a commit to claudio4j/camel-k that referenced this issue Jul 1, 2021
claudio4j added a commit to claudio4j/camel-k that referenced this issue Jul 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant