Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve resliency of size tagging when hostedcluster KAS down
When the kube apiserver of a hosted cluster is not available, the replica status of nodepools will not be accurate because the CAPI controllers can no longer get node counts from the API server. This commit improves the handling of this situation with 2 changes: - Switches to use .spec.replicas to determine node count of nodepools that do not have autoscaling turned on. - Once a hosted cluster has been tagged with a size, only if the kube apiserver of the hosted cluster is available is the hosted cluster allowed to move to a different size.
- Loading branch information