You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2023/08/03 05:40:00 UTC
[jira] [Commented] (CAMEL-19701) camel-main - Filter out Kubernetes ENV injected service host/port
[ https://issues.apache.org/jira/browse/CAMEL-19701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17750578#comment-17750578 ]
Claus Ibsen commented on CAMEL-19701:
-------------------------------------
You can turn this off for all ENV with camel.main.autoConfigurationEnvironmentVariablesEnabled=false
However we need to filter out services that should not be attempted to be configured on camel.main.xxx
eg if you have a k8s service-name = camel-demo
> camel-main - Filter out Kubernetes ENV injected service host/port
> -----------------------------------------------------------------
>
> Key: CAMEL-19701
> URL: https://issues.apache.org/jira/browse/CAMEL-19701
> Project: Camel
> Issue Type: Bug
> Components: camel-main
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 4.0.0
>
>
> 2023-08-02 18:34:40,483 INFO [org.apa.cam.qua.cor.CamelBootstrapRecorder] (main) Bootstrap runtime: org.apache.camel.quarkus.main.CamelMainRuntime
> 2023-08-02 18:34:40,525 INFO [org.apa.cam.mai.MainSupport] (main) Apache Camel (Main) 4.0.0-RC1 is starting
> 2023-08-02 18:34:40,632 ERROR [org.apa.cam.qua.mai.CamelMainRuntime] (main) Failed to start application: java.lang.IllegalArgumentException: Cannot find getter method: demo on bean: class org.apache.camel.main.MainConfigurationProperties when binding property: demo.port
> https://learn.microsoft.com/en-us/visualstudio/bridge/kubernetes-environment-variables#environment-variables-table
--
This message was sent by Atlassian Jira
(v8.20.10#820010)