in extras/postgres-hpa/helm-postgres-ha/pgpool-operator/pgpool.py [0:0]
def replicas_changed(old, new, **_):
new_replicas = new.get('spec', {}).get('replicas', 0) if new else 0
old_replicas = old.get('spec', {}).get('replicas', 0) if old else 0
return new_replicas != old_replicas