Fix HasHighlyAvailableControlPlane to use AllInstanceGroups - #17740
k8s-ci-robot merged 1 commit into
Conversation
|
|
|
Welcome @pkubicsek-sb! |
|
Hi @pkubicsek-sb. Thanks for your PR. I'm waiting for a github.com member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
05cbb11 to
c3189b5
Compare
When using 'kops update cluster' with --instance-group or --instance-group-roles filters, the HasHighlyAvailableControlPlane function was incorrectly using the filtered InstanceGroups list instead of AllInstanceGroups. This caused cluster-wide controllers like aws-load-balancer-controller and node-termination-handler to incorrectly downscale replicas from 2 to 1 when updating a specific instance group in an HA cluster. The fix changes HasHighlyAvailableControlPlane to use AllInstanceGroups since HA status is a cluster-wide property, not specific to filtered instance groups. Signed-off-by: Peter Kubicsek <peter.kubicsek@happening.xyz>
c3189b5 to
e6786c2
Compare
|
Thanks for looking into this @pkubicsek-sb. |
|
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
|
The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
|
/remove-lifecycle rotten |
|
Thanks for your patience and your contribution @pkubicsek-sb, and sorry for the slow review. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hakman The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…-upstream-release-1.35 Automated cherry pick of #17740: Fix HasHighlyAvailableControlPlane to use AllInstanceGroups
…-upstream-release-1.34 Automated cherry pick of #17740: Fix HasHighlyAvailableControlPlane to use AllInstanceGroups
What this PR does / why we need it:
Fixes a bug where
HasHighlyAvailableControlPlane()incorrectly uses the filteredInstanceGroupslist instead ofAllInstanceGroups. This causes cluster-wide controllers (aws-load-balancer-controller, node-termination-handler, etc.) to incorrectly downscale from 2 to 1 replica when runningkops update clusterwith--instance-groupor--instance-group-rolesfilters on HA clusters.The fix changes the function to use
AllInstanceGroupssince HA status is a cluster-wide property that should not depend on instance group filtering.Which issue(s) this PR fixes:
Fixes #17739
Special notes for your reviewer:
--instance-groupor--instance-group-rolesflagstemplate_functions.go:502