Skip to content

The ready condition of MachineDeployment doesn't change when a Machine CR is deleted #7461

@jessehu

Description

@jessehu

What steps did you take and what happened:

  1. Create a workload cluster (e.g. 3 CP + 3 Workers)
  2. Delete a Machine CR related to MachineDeployment
  3. MachineDeployment status doesn't change until the old Machine is deleted successfully and the new Machine CR is created.

What did you expect to happen:
The ready condition of MachineDeployment CR should change to False right after Machine CR is deleted. The Replicas or ReadyReplicas in MD.Status might be udpated as well as.

Anything else you would like to add:
When Delete a Machine CR related to KCP, the ready condition of KCP CR changes to False immediately (as expected). The Replicas, ReadyReplicas, Unavailable in MD.Status doesn't change until the new Machine CR is created.

Environment:

  • Cluster-api version: v1.2.3
  • minikube/kind version:
  • Kubernetes version: (use kubectl version):
  • OS (e.g. from /etc/os-release):

/kind bug
[One or more /area label. See https://github.com/kubernetes-sigs/cluster-api/labels?q=area for the list of labels]

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/bugCategorizes issue or PR as related to a bug.priority/important-longtermImportant over the long term, but may not be staffed and/or may need multiple releases to complete.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions