Skip to content
This repository was archived by the owner on Oct 14, 2026. It is now read-only.
This repository was archived by the owner on Oct 14, 2026. It is now read-only.

scaleUp with all members manually deleted: surface a clear condition instead of silent retry #7

Open

Description

@lllamnyp

Symptom

If a user manually deletes every EtcdMember after the cluster has bootstrapped, the cluster controller enters `scaleUp` with `len(active)==0` and `ClusterID != ""`. `endpoints` is empty, `EtcdClientFactory` returns "no endpoints" or equivalent, the controller logs and `RequeueAfter: 10s` — but `status.conditions` stays as whatever was last written, with no explicit signal of "I have nothing to work with."

`kubectl describe etcdcluster` doesn't tell the user the cluster has been catastrophically de-membered by external action.

Fix

When `scaleUp` (or `tryDiscoverCluster`, since the symmetric path exists there) sees `len(active) == 0` post-bootstrap, surface a distinct condition — `Available=False, Reason=NoMembers` — telling the user the cluster has no members to operate on and they need to either delete the EtcdCluster CR (clean recreate) or restore an EtcdMember.

Notes

  • Self-inflicted-wound case; the README does say users shouldn't edit EtcdMember CRs directly. Still worth a signal because it'll happen anyway and silent reconcile loops are the worst UX failure mode.
  • Symmetric to the WaitingForSeed / ClusterUnreachable / BootstrapFailed condition vocabulary added in earlier rounds.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions