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

Unsupported Pod template can cause AUTO logic to keep StatefulSet at 0 replicas [GHI#44280]

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

      Relates to #38846 - Env values for the existing statefulset and the desired state may not be identical if the apiversion is missing on some transitive resources like field references.

      Version

      26.2

      Regression

      [ ] The issue is a regression

      Expected behavior

      Non-meaningful differences should not trigger upgrading behavior.

      Actual behavior

      A missing apiVersion in the unsupported pod template will cause AUTO upgrading logic to continually be engaged - which can result in the StatefulSet being kept at 0 replicas.

      How to Reproduce?

      Add an env entry to the unsupported pod template spec similar to:

      
      
      • name: MY_NAME
        valueFrom:
        fieldRef:
        fieldPath: metadata.name
        
        

        Along with having the update strategy set to AUTO.

      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: