fix(kops): apply control-plane instance group overrides - #18800
divyanshuprakas-h wants to merge 1 commit into
Conversation
|
Welcome @divyanshuprakas-h! |
|
Hi @divyanshuprakas-h. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Tip We noticed you've done this a few times! Consider joining the org to skip this step and gain 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 |
|
/hold |
|
Closing this PR: the proposed root cause does not hold up, and the change would regress the deployer.
With this PR, the condition never matches real output, so The failing job also shows the override was applied. The [build log](https://storage.googleapis.com/kubernetes-ci-logs/logs/ci-kubernetes-e2e-kops-aws-500-node-dra-with-workload-amazonvpc-using-cl2/2101869215270047744/build-log.txt) contains: The [instancegroups.yaml](https://storage.googleapis.com/kubernetes-ci-logs/logs/ci-kubernetes-e2e-kops-aws-500-node-dra-with-workload-amazonvpc-using-cl2/2101869215270047744/artifacts/instancegroups.yaml) artifact has The actual problem is EC2 capacity for
The fix belongs in the test-infra job config ( /close |
|
@hakman: Closed this PR. DetailsIn response to this:
Instructions 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. |
What type of PR is this?
/kind bug
What this PR does
The kOps kubetest2 deployer was checking for the
Masterinstance group role when applying control-plane instance group overrides.kOps instance groups use the
ControlPlanerole, so control-plane overrides were never applied.This caused
--control-plane-instance-group-overridesto be silently skipped. In the affected e2e job, the configured:override therefore never reached the generated AWS LaunchTemplate, which continued to use the default
gp3root volume type.This PR:
MastertoControlPlanekops edit instancegrouprootVolume.type=io2through the edit/set and AWS model pathsTesting
GOWORK=off go test ./pkg/commands -run 'TestSetInstanceGroupsFields' -vGOWORK=off go test ./cmd/kops -run '^TestEditInstanceGroup$' -vGOWORK=off go test ./pkg/model/awsmodel -run '^TestRootVolumeOptimizationFlag$' -vGOWORK=off go test ./tests/e2e/kubetest2-kops/deployer -run '^TestSetInstanceGroupOverridesControlPlane$' -vgit diff --checkRelated issue
Related to kubernetes/kubernetes#142282
This PR fixes the kOps control-plane InstanceGroup override path identified while investigating the failing Kubernetes CI job:
ci-kubernetes-e2e-kops-aws-500-node-dra-with-workload-amazonvpc-using-cl2