You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/11/26 14:39:50 UTC
[GitHub] [camel-k] squakez commented on issue #2789: how i use build-property on Integration crd
squakez commented on issue #2789:
URL: https://github.com/apache/camel-k/issues/2789#issuecomment-980026970
Hello,
it's part of the `builder` trait:
```
traits:
builder:
configuration:
properties:
- quarkus.datasource.camel.db-kind = postgresql
```
You may get the entire output of the Integration by executing a [dry-run](https://camel.apache.org/camel-k/next/running/running.html#no-cli-integration), ie:
```
$ kamel run PostgresDBAutoDatasource.java -o yaml --build-property quarkus.datasource.camel.db-kind=postgresql --config secret:my-datasource -d mvn:io.quarkus:quarkus-jdbc-postgresql:1.13.7.Final
apiVersion: camel.apache.org/v1
kind: Integration
metadata:
creationTimestamp: null
name: postgres-db-auto-datasource
namespace: default
spec:
configuration:
- resourceType: config
type: secret
value: my-datasource
dependencies:
- mvn:io.quarkus:quarkus-jdbc-postgresql:1.13.7.Final
sources:
- content: "/*\n * Licensed to the Apache Software Foundation (ASF) under one or
....
extends RouteBuilder {\n @Override\n public void configure() throws Exception
{\n from(\"timer://foo?period=10000\")\n .setBody(constant(\"select * from
test\"))\n .to(\"jdbc:camel\")\n .to(\"log:info\");\n }\n\n}"
name: PostgresDBAutoDatasource.java
traits:
builder:
configuration:
properties:
- quarkus.datasource.camel.db-kind = postgresql
status: {}
```
--
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-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org