You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2024/11/18 08:48:11 UTC
(camel) branch CAMEL-21458 created (now c3fe63ba1a0)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a change to branch CAMEL-21458
in repository https://gitbox.apache.org/repos/asf/camel.git
at c3fe63ba1a0 CAMEL-21458 - Kubernetes Configmaps: Trigger context reloading on update - Documentation
This branch includes the following new commits:
new c3fe63ba1a0 CAMEL-21458 - Kubernetes Configmaps: Trigger context reloading on update - Documentation
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(camel) 01/01: CAMEL-21458 - Kubernetes Configmaps: Trigger context reloading on update - Documentation
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch CAMEL-21458
in repository https://gitbox.apache.org/repos/asf/camel.git
commit c3fe63ba1a006cae01e97f4282a616ea7b460fd3
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Nov 18 09:47:51 2024 +0100
CAMEL-21458 - Kubernetes Configmaps: Trigger context reloading on update - Documentation
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
.../src/main/docs/kubernetes-config-maps-component.adoc | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/components/camel-kubernetes/src/main/docs/kubernetes-config-maps-component.adoc b/components/camel-kubernetes/src/main/docs/kubernetes-config-maps-component.adoc
index 4bcddf09cc0..f95085a5ca2 100644
--- a/components/camel-kubernetes/src/main/docs/kubernetes-config-maps-component.adoc
+++ b/components/camel-kubernetes/src/main/docs/kubernetes-config-maps-component.adoc
@@ -150,4 +150,19 @@ You can also provide a default value in case a key does not exist:
<log message="I want {{configmap:myconfig/second:Heineken}}"/>
----
+== Automatic Camel context reloading on Configmaps Refresh
+
+Being able to reload Camel context on a Configmap Refresh could be done by specifying the following properties:
+
+[source,properties]
+----
+camel.vault.kubernetescm.refreshEnabled=true
+camel.vault.kubernetescm.configmaps=Configmap
+camel.main.context-reload-enabled = true
+----
+
+where `camel.vault.kubernetescm.refreshEnabled` will enable the automatic context reload and `camel.vault.kubernetescm.configmaps` is a regex representing or a comma separated lists of the configmaps we want to track for updates.
+
+Whenever a configmap listed in the property, will be updated in the same namespace of the running application, the Camel context will be reloaded, refreshing the configmap value.
+
include::spring-boot:partial$starter.adoc[]