giantswarm / happa

Web user interface for Giant Swarm – Beyond managed Kubernetes
https://www.giantswarm.io/
Apache License 2.0
21 stars 5 forks source link

Control plane nodes widget fix #4570

Closed gusevda closed 8 months ago

gusevda commented 8 months ago

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?

Group 4

Any background context you can provide?

Closes https://github.com/giantswarm/roadmap/issues/2947.