squakez commented on issue #5178: URL: https://github.com/apache/camel-k/issues/5178#issuecomment-1963586235
Hello. Just a couple of notes regarding this issue. First of all, you need to make sure that the property you're willing to use is really a build time properties as, in such case, likely you need to provide it ahead of time, during build phase. I think it's not the case for database user/password though. Then, specifically to your problem, this is happening because you are not setting the environment variable (ie, via [environment trait](https://camel.apache.org/camel-k/2.2.x/traits/environment.html)). What you need is the application Pod to have something like: ``` env: - name: PASSWORD valueFrom: secretKeyRef: name: mysqlpwd key: password ``` However, I think we don't have that feature out of the box. The only way to manage this at the moment would be using [Pod trait configuration](https://camel.apache.org/camel-k/2.2.x/traits/pod.html). If you think this is something useful/required, please, open a new issue asking for the feature to enhance the environment trait to include configmap/secret values. -- 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