mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-09 14:02:56 +09:00
The previous healthCheckExprs flagged the seaweedfs-db HR as failed within seconds of creating the Cluster CR. CNPG sets Ready=False with reason=ClusterIsNotReady as the initial bootstrap condition before postgres starts, so the generic `failed: ... Ready=False` predicate matches the normal startup state and aborts the install early. This cascades: tenant-root times out waiting for seaweedfs, rolls back (deleting child HRs), retries, and the e2e "Configure Tenant" step races the rollback gap. Use Flux's three-predicate form: route ClusterIsNotReady to `inProgress` so the HR keeps polling, keep `failed` for any other future Ready=False reasons, and rely on the HR `timeout: 10m` as the real backstop for a genuinely stuck cluster. Assisted-By: Claude <noreply@anthropic.com> Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>