lburgazzoli commented on issue #1715:
URL: https://github.com/apache/camel-k/issues/1715#issuecomment-698968084


   So about the `valueFrom` we have some issue that could make it possible:
   
   - https://github.com/apache/camel-k/issues/1680
   - https://github.com/apache/camel-k/issues/1657
   
   but they are not yet implemented so you either have to pack them as a 
properties file like entry or you can use some special resolvers, like:
    
   ```
   camel.beans.dataSource = #class:org.apache.commons.dbcp.BasicDataSource
   camel.beans.dataSource.driverClassName = org.postgresql.Driver
   camel.beans.dataSource.url = jdbc:postgresql://postgres:5432/my-db
   camel.beans.dataSource.username = {{secret:db-login/POSTGRES_USER}}
   camel.beans.dataSource.password = {{secret:db-login/POSTGRES_PASSWORD}}
   ```
   
   **Note 1** you still need to tell kamel to mount such secrets by with the 
`--secre` cli option.
   **Note 2** hope it works because I just realize there's no tests :)
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to