keycloak / keycloak-operator

ARCHIVED Kubernetes Operator for the no longer supported WildFly distribution of Keycloak
Apache License 2.0
429 stars 283 forks source link

Operator cannot reconcile StatefulSet if Selector is misconfigured #566

Closed vmuzikar closed 2 years ago

vmuzikar commented 2 years ago

Describe the bug

This issue is related to #512, see it also for steps to reproduce. However, the fix introduced in #513 is not complete as it requires the user to manually recreate the StatefulSet.

Version

18.0.0-18.0.2

Expected behavior

Operator automatically recreates the StatefulSet to use correct Selector to avoid getting into deadlocked inconsistent state.

Actual behavior

No response

How to Reproduce?

No response

Anything else?

No response