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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail early when instance selector returns too many instances #4139

Merged
merged 2 commits into from Aug 27, 2021

Conversation

Callisto13
Copy link
Contributor

@Callisto13 Callisto13 commented Aug 26, 2021

Description

Closes #4067. (specifically this comment #4067 (comment))

CloudFormation will fail if it gets more than 40 instance types, so with this PR we will fail early to be less annoying.

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 馃専

@Callisto13 Callisto13 changed the title Fail early when instance selector returns too many Fail early when instance selector returns too many instances Aug 26, 2021
@@ -19,6 +19,10 @@ import (
"github.com/weaveworks/eksctl/pkg/vpc"
)

// MaxInstanceTypes is the maximum number of instance types you can specify in
// a CloudFormation template
const maxInstanceTypes = 40
Copy link
Contributor Author

Choose a reason for hiding this comment

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

anyone know if there is a const in aws which already covers this?

@Callisto13 Callisto13 enabled auto-merge (squash) August 27, 2021 08:26
@Callisto13 Callisto13 merged commit b2fd611 into eksctl-io:main Aug 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using --instance-selector-cpu-architecture arm64 cause a panic.
2 participants