[ https://issues.apache.org/jira/browse/CAMEL-21770?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17928828#comment-17928828 ]
James Netherton commented on CAMEL-21770: ----------------------------------------- Yeah, I just tested that locally and it seems to work. Need to test it in a bunch of other scenarios, but I can probably provide a PR to fix this. > camel-kubernetes: Autowired KubernetesClient should not be closed > ----------------------------------------------------------------- > > Key: CAMEL-21770 > URL: https://issues.apache.org/jira/browse/CAMEL-21770 > Project: Camel > Issue Type: Bug > Components: camel-kubernetes > Reporter: James Netherton > Priority: Minor > > There's a problem with context reloading triggered from k8s secrets when > using an autowired KubernetesClient. > Both SecretsReloadTriggerTask and AbstractKubernetesEndpoint close the > KubernetesClient. When routes get refreshed, the closed client is wired back > in an unusable state. -- This message was sent by Atlassian Jira (v8.20.10#820010)