squakez commented on code in PR #5497: URL: https://github.com/apache/camel-k/pull/5497#discussion_r1599694073
########## docs/modules/ROOT/pages/configuration/build-time-properties.adoc: ########## @@ -35,17 +39,21 @@ quarkus.application.name = my-super-application quarkus.banner.enabled = true ---- -[source,groovy] -.build-property-route.groovy +[source,yaml] +.build-property-route.yaml ---- -from('timer:build-property') - .log('The application name: {{quarkus.application.name}}') +- from: + uri: "timer:yaml" Review Comment: 'timer:build-property' ########## docs/modules/ROOT/pages/configuration/build-time-properties.adoc: ########## @@ -8,17 +8,21 @@ You may be required to provide certain *build-time properties* that are needed o You will find this feature very useful when dealing with configuration that affects how `Quarkus` builds the `Integration`. For example, let's see how to override the default `quarkus.application.name` expected by any `Quarkus` application: -[source,groovy] -.build-property-route.groovy +[source,yaml] +.build-property-route.yaml ---- -from('timer:build-property') - .log('The application name: {{quarkus.application.name}}') +- from: + uri: "timer:yaml" Review Comment: `timer:build-property` ########## docs/modules/ROOT/pages/configuration/runtime-properties.adoc: ########## @@ -8,35 +8,45 @@ During the execution of an `Integration` you can provide a single property or a Imagine you have a generic `Route` and you set a placeholder for certain information (ie, _my.message_ variable): -[source,groovy] -.property-route.groovy +[source,yaml] +.property-route.yaml ---- -from('timer:property') - .log('property content is: {{my.message}}') +- from: + uri: "timer:yaml" Review Comment: property ########## docs/modules/ROOT/pages/configuration/configuration.adoc: ########## @@ -7,17 +7,22 @@ The property value can be used inside Camel K integrations using the *property p The syntax for properties has the form `{{my.property}}`, for example: -[source,groovy] -.props.groovy +[source,yaml] +.property-route.yaml ---- -from('timer:props?period=1000') - .log('{{my.message}}') +- from: + uri: "timer:yaml" Review Comment: props ########## docs/modules/ROOT/pages/configuration/components.adoc: ########## @@ -2,19 +2,36 @@ Camel components can be configured programmatically (within the integration code) or using properties with the following syntax: -``` +[source] +---- camel.component.${scheme}.${property}=${value} -``` +---- As example if you want to change the queue size of the seda component, you can use the following property: -``` +[source] +---- camel.component.seda.queueSize=10 -``` +---- For example, you can do it when running the integration from the command line: +[source,yaml] +.config-seda-route.yaml +---- +- from: + uri: "timer:yaml" Review Comment: 'timer:seda'? ########## docs/modules/ROOT/pages/configuration/build-time-properties.adoc: ########## @@ -63,17 +71,21 @@ kubectl create configmap my-cm-bp --from-literal=quarkus.application.name="my-gr Here, as an example we have create a configmap with 2 `Quarkus` properties. -[source,groovy] -.build-property-route.groovy +[source,yaml] +.build-property-route.yaml ---- -from('timer:build-property') - .log('The application name: {{quarkus.application.name}}') +- from: + uri: "timer:yaml" Review Comment: 'timer:build-property' -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org