Skip to content

Commit

Permalink
CAMEL-21458 - Kubernetes Configmaps: Trigger context reloading on upd…
Browse files Browse the repository at this point in the history
…ate - Documentation

Signed-off-by: Andrea Cosentino <[email protected]>
  • Loading branch information
oscerd committed Nov 18, 2024
1 parent 3f15820 commit c3fe63b
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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[]

0 comments on commit c3fe63b

Please sign in to comment.