On CAPI to calculate "ready" and "total" amount of nodes for the "Control Plane" widget we go over the list of control plane nodes. Since during cluster creadtion they appear one after another we don't know the total amount in advance. This makes the widget to display not fully correct information. It could display "Control plane node ready" and after some time "1 of 2 control plane nodes ready" - see screenshot below. In this PR, I changed the way total amount of nodes is calculated. I additionally check the KubeadmControlPlane resource associated with the cluster, and get value from there (.spec.replicas).
What does this PR do?
On CAPI to calculate "ready" and "total" amount of nodes for the "Control Plane" widget we go over the list of control plane nodes. Since during cluster creadtion they appear one after another we don't know the total amount in advance. This makes the widget to display not fully correct information. It could display "Control plane node ready" and after some time "1 of 2 control plane nodes ready" - see screenshot below. In this PR, I changed the way total amount of nodes is calculated. I additionally check the
KubeadmControlPlane
resource associated with the cluster, and get value from there (.spec.replicas
).How does it look like?
Any background context you can provide?
Closes https://github.com/giantswarm/roadmap/issues/2947.