[
https://issues.apache.org/jira/browse/CAMEL-19361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-19361:
--------------------------------
Description:
In case you configurations defined via a trait in KameletBinding
(argh Camel K has so many small secrets to configure stuff instead of standard
Camel with application.properties)
{code}
apiVersion: camel.apache.org/v1alpha1
kind: KameletBinding
metadata:
name: sample
annotations:
trait.camel.apache.org/camel.properties: "camel.main.tracing=true"
spec:
source:
ref:
kind: Kamelet
apiVersion: camel.apache.org/v1alpha1
name: timer-source
properties:
period: 5000
contentType: application/json
message: '{"id":"1","field":"hello","message":"Camel Rocks"}'
steps:
- ref:
kind: Kamelet
apiVersion: camel.apache.org/v1alpha1
name: extract-field-action
properties:
field: "field"
sink:
ref:
kind: Kamelet
apiVersion: camel.apache.org/v1
name: log-sink
properties:
show-headers: false
{code}
was:
In case you configurations defined via a trait in KameletBinding
(argh Camel K has so many small secrets to configure stuff instead of standard
Camel with application.properties)
apiVersion: camel.apache.org/v1alpha1
kind: KameletBinding
metadata:
name: sample
annotations:
trait.camel.apache.org/camel.properties: "camel.main.tracing=true"
spec:
source:
ref:
kind: Kamelet
apiVersion: camel.apache.org/v1alpha1
name: timer-source
properties:
period: 5000
contentType: application/json
message: '{"id":"1","field":"hello","message":"Camel Rocks"}'
steps:
- ref:
kind: Kamelet
apiVersion: camel.apache.org/v1alpha1
name: extract-field-action
properties:
field: "field"
sink:
ref:
kind: Kamelet
apiVersion: camel.apache.org/v1
name: log-sink
properties:
show-headers: false
> camel-jbang - Parse trait.camel.apache.org/camel.properties from
> KameletBinding
> -------------------------------------------------------------------------------
>
> Key: CAMEL-19361
> URL: https://issues.apache.org/jira/browse/CAMEL-19361
> Project: Camel
> Issue Type: Improvement
> Components: camel-jbang, camel-yaml-dsl
> Reporter: Claus Ibsen
> Priority: Major
>
> In case you configurations defined via a trait in KameletBinding
> (argh Camel K has so many small secrets to configure stuff instead of
> standard Camel with application.properties)
> {code}
> apiVersion: camel.apache.org/v1alpha1
> kind: KameletBinding
> metadata:
> name: sample
> annotations:
> trait.camel.apache.org/camel.properties: "camel.main.tracing=true"
> spec:
> source:
> ref:
> kind: Kamelet
> apiVersion: camel.apache.org/v1alpha1
> name: timer-source
> properties:
> period: 5000
> contentType: application/json
> message: '{"id":"1","field":"hello","message":"Camel Rocks"}'
> steps:
> - ref:
> kind: Kamelet
> apiVersion: camel.apache.org/v1alpha1
> name: extract-field-action
> properties:
> field: "field"
> sink:
> ref:
> kind: Kamelet
> apiVersion: camel.apache.org/v1
> name: log-sink
> properties:
> show-headers: false
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)