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/08/18 08:49:52 UTC

[GitHub] [camel-k] squakez edited a comment on issue #2512: Issue when trying to configure env vars with annotations

squakez edited a comment on issue #2512:
URL: https://github.com/apache/camel-k/issues/2512#issuecomment-900937210


   According the [trait documentation](https://camel.apache.org/camel-k/latest/traits/environment.html), the trait is in charge to inject certain well known env variables, not to create any new one. The actual way to have it working would be to specify via `.spec.integration`, such as:
   ```
   metadata:
     name: timer-to-log
     namespace: default
   spec:
     integration:
       configuration:
       - type: env
         value: X=1
   ```
   Perhaps you're suggesting to enhance the trait to include the possibility to declare the `env` via annotation?


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