Uploaded image for project: 'Red Hat build of Keycloak'
  1. Red Hat build of Keycloak
  2. RHBK-2955

Set the correct revision number in stateful set [GHI#38617]

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      Before reporting an issue

      [x] I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

      Area

      operator

      Describe the bug

      When the Explicit update strategy decides on a recreate update, the stateful set is annotated with the wrong revision value. See

      https://github.com/keycloak/keycloak/blob/42a0d0ed28ef3b31f326fc0cc6cd987010531f1e/operator/src/main/java/org/keycloak/operator/controllers/KeycloakDeploymentDependentResource.java#L575

      It should use the revision annotation from the existing stateful set until the number of replicas reaches zero. Then, it can use the revision value from the Keycloak CR.

      Version

      main

      Regression

      [ ] The issue is a regression

      Expected behavior

      The old revision is set while the stateful set is scaled down.

      Actual behavior

      The new revision is set while the stateful set is scaled down.

      How to Reproduce?

      Check logs from GH actions.

      Anything else?

      No response

              Unassigned Unassigned
              pvlha Pavel Vlha
              Keycloak SRE
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: