siderolabs / cluster-api-control-plane-provider-talos

A control plane provider for CAPI + Talos
Mozilla Public License 2.0
60 stars 20 forks source link

fix: stop reporting negative unavailable replicas #134

Closed smira closed 2 years ago

smira commented 2 years ago

When comparing nodes list in the workload clsuter with machine count, we can see more nodes than machines, so this check removes a case when stats go weird:

NAME                    READY   INITIALIZED   REPLICAS   READY REPLICAS   UNAVAILABLE REPLICAS
management-cluster-cp   true    true          1          2                -1

Signed-off-by: Andrey Smirnov andrey.smirnov@talos-systems.com

smira commented 2 years ago

/m