🐛 Allow AWSMachine instance creation when control-plane LB is disabled#6018
🐛 Allow AWSMachine instance creation when control-plane LB is disabled#6018arno-pons wants to merge 1 commit into
Conversation
…bled When `AWSCluster.spec.controlPlaneLoadBalancer.loadBalancerType` is set to `disabled`, the AWSCluster controller correctly delegates endpoint management to the user and waits for `spec.controlPlaneEndpoint` to be populated externally. However, the AWSMachine instance creation code still blocked on `status.network.apiServerELB.dnsName` being non-empty, which is never populated when the LB is disabled. This caused all control-plane machine creation to fail with: "failed to run controlplane, APIServer ELB not available" Add `IsControlPlaneLBDisabled()` to `MachineScope` and include it in the ELB availability guard so that instance creation proceeds when the user has opted out of CAPA-managed load balancing and provided their own `spec.controlPlaneEndpoint`.
|
Welcome @arno-pons! |
|
Hi @arno-pons. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. 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. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
What type of PR is this?
/kind bug
What this PR does / why we need it:
When
AWSCluster.spec.controlPlaneLoadBalancer.loadBalancerTypeis set todisabled, the AWSCluster controller correctly delegates endpoint management to the user and waits forspec.controlPlaneEndpointto be populated externally.However, the AWSMachine instance creation code still blocked on
status.network.apiServerELB.dnsNamebeing non-empty, which is never populated when the LB is disabled. This caused all control-plane machine creation to fail with:"failed to run controlplane, APIServer ELB not available"
Add
IsControlPlaneLBDisabled()toMachineScopeand include it in the ELB availability guard so that instance creation proceeds when the user has opted out of CAPA-managed load balancing and provided their ownspec.controlPlaneEndpoint.AI Usage:
Copilot usage to fix the issue.
Fixes #6017
Special notes for your reviewer:
None
Checklist:
Release note: