8000 Guideline for Using Manual Migration Strategy With Keycloak Operator · keycloak keycloak · Discussion #48713 · GitHub
[go: up one dir, main page]

Skip to content
Discussion options

You must be logged in to vote

The Operator doesn't really have a built-in "manual migration" mode. When you update the Keycloak CR with a new image version, the Operator will spin up the new version and KC automatically runs --spi-connections-jpa-default-migration-strategy=update (Liquibase auto-migration) by default.

If you want to control migrations manually, you'd probably want to:

  1. Set --spi-connections-jpa-default-migration-strategy=manual on your KC instance
  2. Before rolling out a new version through the Operator, run the migration yourself using kc.sh export or directly run Liquibase against your DB
  3. Then update the CR image tag

The catch is the Operator might restart the pod and KC will complain if the schema do…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by NickDelta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
0