Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lookup instance availability for all AZs #5454

Merged
merged 19 commits into from
Jul 4, 2022
Merged

Lookup instance availability for all AZs #5454

merged 19 commits into from
Jul 4, 2022

Conversation

Skarlso
Copy link
Contributor

@Skarlso Skarlso commented Jun 22, 2022

Description

Closes #5128

Checklist

  • Added tests that cover your change (if possible)
  • Added/modified documentation as required (such as the README.md, or the userdocs directory)
  • Manually tested
  • Made sure the title of the PR is a good description that can go into the release notes
  • (Core team) Added labels for change area (e.g. area/nodegroup) and kind (e.g. kind/improvement)

BONUS POINTS checklist: complete for good vibes and maybe prizes?! 🤯

  • Backfilled missing tests for code in same general area 🎉
  • Refactored something and made the world a better place 🌟

@Skarlso Skarlso added the kind/feature New feature or request label Jun 22, 2022
@@ -1041,7 +1041,10 @@ func (n *NodeGroup) InstanceTypeList() []string {
if HasMixedInstances(n) {
return n.InstancesDistribution.InstanceTypes
}
return []string{n.InstanceType}
if n.InstanceType != "" {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These were the reason for the need to revert and the reason the tests failed.
#5453

@@ -1523,7 +1529,7 @@ func (m *ManagedNodeGroup) InstanceTypeList() []string {
if len(m.InstanceTypes) > 0 {
return m.InstanceTypes
}
return []string{m.InstanceType}
return nil
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And this.

@Skarlso
Copy link
Contributor Author

Skarlso commented Jun 22, 2022

Will link test run results of the two failing tests.

@Skarlso
Copy link
Contributor Author

Skarlso commented Jun 23, 2022

Ran 13 of 13 Specs in 1893.771 seconds
SUCCESS! -- 13 Passed | 0 Failed | 0 Pending | 0 Skipped
--- PASS: TestDryRun (1893.77s)
PASS

@Skarlso
Copy link
Contributor Author

Skarlso commented Jun 23, 2022

Ran 2 of 2 Specs in 15.808 seconds
SUCCESS! -- 2 Passed | 0 Failed | 0 Pending | 0 Skipped
--- PASS: TestInstanceSelector (15.81s)
PASS

Copy link
Contributor

@Himangini Himangini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻

@cPu1 cPu1 enabled auto-merge (squash) July 1, 2022 07:13
@cPu1 cPu1 disabled auto-merge July 1, 2022 11:09
@cPu1
Copy link
Contributor

cPu1 commented Jul 1, 2022

Unit tests are failing after pulling in the latest changes, we're going to have to skip this for today's release.

@cPu1 cPu1 enabled auto-merge (squash) July 4, 2022 11:33
@cPu1 cPu1 merged commit a8519c7 into eksctl-io:main Jul 4, 2022
@cPu1 cPu1 removed the do-not-merge label Jul 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Determine if instance type is available in zone
3 participants