Skip to content

Rename 'replicas' to 'current' in KubeadmControlPlane, MachineDeployments and MachineSet kubectl output #6227

@killianmuldoon

Description

@killianmuldoon

Cluster API should use "current" instead of "replicas" in CLI output to express the number of instances of an object in a scalable resource.
With #6164 we're adding desired to all three of the above objects, showing the number of replicas. In order to be consistent with the Kubernetes output for Daemonsets we should rename the 'replicas' column to 'current'.

In detail:
As of release 1.1 the outputs for KubeadmControlPlane, MachineDeployments and MachineSets are :

KubeadmControlPlane

NAME             CLUSTER    INITIALIZED   API SERVER AVAILABLE   REPLICAS   READY   UPDATED   UNAVAILABLE   AGE   VERSION
cloister-9l2n7   cloister   true          true                   3          3       3         0             24h   v1.21.2

MachineDeployments:

NAME                           CLUSTER    REPLICAS   READY   UPDATED   UNAVAILABLE   PHASE     AGE   VERSION
cloister-linux-workers-jd4qq   cloister   3          3       3         0             Running   24h   v1.21.2

MachineSets:

NAME                                              CLUSTER      REPLICAS   READY   AVAILABLE   AGE   VERSION
my-cluster-default-worker-topo-bjn28-66767779f7   my-cluster   1                              21h   v1.22.0

In a future release the outputs for KubeadmControlPlane, MachineDeployments and MachineSets this change (combined with the change from #6164) result in:

KubeadmControlPlane

NAME             CLUSTER    INITIALIZED   API SERVER AVAILABLE   CURRENT DESIRED   READY   UPDATED   UNAVAILABLE   AGE   VERSION
cloister-9l2n7   cloister   true          true                   3          3       3         0                   3        24h   v1.21.2

MachineDeployments:

NAME                           CLUSTER      CURRENT  DESIRED READY UPDATED   UNAVAILABLE   PHASE     AGE   VERSION
cloister-linux-workers-jd4qq   cloister     3       3           3     3     0          Running   24h   v1.21.2

MachineSets:

NAME                                              CLUSTER    CURRENT  DESIRED READY   AVAILABLE   AGE   VERSION
my-cluster-default-worker-topo-bjn28-66767779f7   my-cluster   1         1                         21h   v1.22.0

/area api

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/apiIssues or PRs related to the APIshelp wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/api-changeCategorizes issue or PR as related to adding, removing, or otherwise changing an APIpriority/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