davsclaus commented on code in PR #26542:
URL: https://github.com/apache/camel/pull/26542#discussion_r4035068480


##########
dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ExportSpringBoot.java:
##########
@@ -160,8 +163,26 @@ public Integer export() throws Exception {
                 prop.setProperty("spring.jmx.enabled", "true");
                 prop.setProperty("hawtio.authenticationEnabled", "false");
             }
+            // developer console (--console) is the camel actuator endpoint 
(/actuator/camel)
+            if (settingsFlag(settings, CamelJBangConstants.CONSOLE)) {
+                addConsoleProperties(prop, devProfile, 
Map.of("camel.main.devConsoleEnabled", "true"));
+                // the camel endpoint must be exposed, keeping what is already 
exposed as the profile replaces the
+                // value. With --observe the starter exposes health and 
prometheus as its default, which an explicit
+                // list would replace, so keep them too (the console is then 
at /observe/camel)
+                String exposed = 
prop.getProperty("management.endpoints.web.exposure.include");
+                if (exposed == null && observe) {
+                    exposed = "health,prometheus";
+                }
+                exposed = exposed == null ? "camel" : exposed + ",camel";

Review Comment:
   Done: `exposeActuatorEndpoints(exposed, ids...)` now merges through a 
`LinkedHashSet` (and leaves a `*` list alone), used by both the hawtio and the 
console block, with a unit test.
   
   _Claude Code on behalf of davsclaus_



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to