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:14:53 UTC
[GitHub] [camel-k] templarfelix opened a new issue #2789: how i use build-property on Integration crd
templarfelix opened a new issue #2789:
URL: https://github.com/apache/camel-k/issues/2789
hi guys i need convert this sample: https://github.com/apache/camel-k/tree/main/examples/databases for Integration Spec. and I don't field field for 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-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-k] squakez commented on issue #2789: how i use build-property on Integration crd
Posted by GitBox <gi...@apache.org>.
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
[GitHub] [camel-k] templarfelix closed issue #2789: how i use build-property on Integration crd
Posted by GitBox <gi...@apache.org>.
templarfelix closed issue #2789:
URL: https://github.com/apache/camel-k/issues/2789
--
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
[GitHub] [camel-k] templarfelix commented on issue #2789: how i use build-property on Integration crd
Posted by GitBox <gi...@apache.org>.
templarfelix commented on issue #2789:
URL: https://github.com/apache/camel-k/issues/2789#issuecomment-980032569
thanks for help @squakez
--
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