Details
-
Bug
-
Resolution: Done
-
Major
-
7.10.1.GA
-
None
-
False
-
False
-
ER1
-
Undefined
-
-
2021 Week 28-30 (from Jul 12)
Description
Kie server embedded healthcheck [1] is disabled when env variable KIE_SERVER_CONTROLLER_OPENSHIFT_ENABLED is set to true. That is correct as for OpenShiftStartupStrategy we rely on ConfigMaps to retrieve Kie server information.
However when KIE_SERVER_CONTROLLER_OPENSHIFT_ENABLED is set to false (for example for ControllerBasedStartupStrategy) we need to be able to disable healthcheck too. Current implementation [2] enforces enablement of the healthcheck for ControllerBasedStartupStrategy (it is not possible to disable it even when user specify -Dorg.kie.controller.ping.alive.disable=true in JAVA_OPTS_APPEND).
The org.kie.controller.ping.alive.disable should be set just for OpenShiftStartupStrategy, for any other strategy it shouldn't be set.
[1] https://github.com/kiegroup/droolsjbpm-integration/blob/7.52.0.Final/kie-server-parent/kie-server-controller/kie-server-controller-impl/src/main/java/org/kie/server/controller/impl/KieServerHealthCheckControllerImpl.java
[2] https://github.com/jboss-container-images/jboss-kie-modules/blob/rhpam-7.10.1.GA/jboss-kie-workbench/added/launch/jboss-kie-workbench.sh#L186