This is an automated email from the ASF dual-hosted git repository. nferraro pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 296051a2e6d8cd21544c82fb365637552f387abf Author: Pasquale Congiusti <[email protected]> AuthorDate: Wed May 26 17:15:21 2021 +0200 doc(examples): --config option usage --- .../user-config/{resources-route.groovy => config-file-route.groovy} | 2 +- examples/user-config/configmap-route.groovy | 2 +- examples/user-config/resources-route.groovy | 5 +---- examples/user-config/secret-route.groovy | 2 +- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/examples/user-config/resources-route.groovy b/examples/user-config/config-file-route.groovy similarity index 93% copy from examples/user-config/resources-route.groovy copy to examples/user-config/config-file-route.groovy index 6f57285..53b347f 100644 --- a/examples/user-config/resources-route.groovy +++ b/examples/user-config/config-file-route.groovy @@ -18,7 +18,7 @@ // // To run this integrations use: -// kamel run --resource resources-data.txt resources-route.groovy --dev +// kamel run --config file:resources-data.txt resources-route.groovy --dev // from('timer:resources') diff --git a/examples/user-config/configmap-route.groovy b/examples/user-config/configmap-route.groovy index 5a61c56..948cb15 100644 --- a/examples/user-config/configmap-route.groovy +++ b/examples/user-config/configmap-route.groovy @@ -20,7 +20,7 @@ // To run this integrations use: // // kubectl create configmap my-cm --from-literal=my-configmap-key="configmap content" -// kamel run --configmap my-cm configmap-route.groovy --dev +// kamel run --config configmap:my-cm configmap-route.groovy --dev // from('timer:configmap') diff --git a/examples/user-config/resources-route.groovy b/examples/user-config/resources-route.groovy index 6f57285..1085840 100644 --- a/examples/user-config/resources-route.groovy +++ b/examples/user-config/resources-route.groovy @@ -21,8 +21,5 @@ // kamel run --resource resources-data.txt resources-route.groovy --dev // -from('timer:resources') - .routeId('resources') - .setBody() - .simple("resource:classpath:resources-data.txt") +from('file:/etc/camel/resources/?fileName=resources-data.txt&noop=true&idempotent=false') .log('resource file content is: ${body}') diff --git a/examples/user-config/secret-route.groovy b/examples/user-config/secret-route.groovy index 49966ae..7027b84 100644 --- a/examples/user-config/secret-route.groovy +++ b/examples/user-config/secret-route.groovy @@ -20,7 +20,7 @@ // To run this integrations use: // // kubectl create secret generic my-sec --from-literal=my-secret-key="very top secret" -// kamel run --secret my-sec secret-route.groovy --dev +// kamel run --config secret:my-sec secret-route.groovy --dev // from('timer:secret')
