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

Disable syncing of the replicas between kc CR and statefulset #549

Closed MStokluska closed 2 years ago

MStokluska commented 2 years ago

Description

RHOAM team plans on enabling horizontal pod autoscaler which is going to take control over the statefulset replicas count. In order for this to work we need the syncing of instances in keycloak CR to replicas in statefulsets disabled.

Discussion

No response

Motivation

This option would allow for enabling HPA on keycloak stateful sets.

Details

A flag "disableReplicasSyncing: true/false" on keycloak CR. Defaults to false, optional. When true, the syncing will be disabled.