Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(keycloakx): Support optimized start #762

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mruzicka
Copy link

@mruzicka mruzicka commented Apr 23, 2024

This PR makes the chart aware of the so called optimized start of Keycloak. This optimized start is achieved by passing the --optimized argument to the Keycloak's start command:

kc.[sh|bat] start --optimized ...

When Keycloak is started this way it assumes it had already been optimized (see Creating an optimized Keycloak build) and ignores options which only take effect during the optimization process but does log a warning when it encounters them. The warning may look something like this:

WARN  [org.keycloak.quarkus.runtime.cli.Picocli] (main) The following build time non-cli options were found, but will be ignored during run time: kc.cache, kc.cache-stack, kc.http-relative-path, kc.health-enabled, kc.metrics-enable

The intent of this PR is to get rid of this warning by not passing the build/optimization-time only options when an optimized start is used. For that purpose a boolean value optimized is introduced which is used to guard the rendering of the build-time only options.

Note that the kc.cache* options are in fact run-time options (even though mentioned in the example warning above). This is a bug in the definition of these options in Keycloak. It's already been fixed in keycloak/keycloak@a3669a6, so once this is released, Keycloak will stop complaining about those.

@mruzicka mruzicka requested a review from a team as a code owner April 23, 2024 10:08
@mruzicka mruzicka changed the title Support optimized start keycloakx: Support optimized start Apr 23, 2024
@mruzicka mruzicka changed the title keycloakx: Support optimized start feat(keycloakx): Support optimized start Apr 23, 2024
Signed-off-by: Michal Růžička <michal.ruza@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant