-
Notifications
You must be signed in to change notification settings - Fork 838
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
AWS Cloudprovider now supports architecture flexibility in a single fleet request #711
Conversation
✔️ Deploy Preview for karpenter-docs-prod canceled. 🔨 Explore the source changes: aa9ec5f 🔍 Inspect the deploy log: https://app.netlify.com/sites/karpenter-docs-prod/deploys/6154b8fd0970ca00077db884 |
551f2bf
to
f4edd8a
Compare
} | ||
} | ||
return architectures | ||
return aws.StringValue(i.ProcessorInfo.SupportedArchitectures[0]) // Unrecognized, but used for error printing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should you just print both then if it's just used for error printing (join) ? Might be confusing if for some reason the first arch is i386
func (p *LaunchTemplateProvider) Get(ctx context.Context, constraints *v1alpha1.Constraints, instanceTypes []cloudprovider.InstanceType) (string, error) { | ||
// 1. If the customer specified a launch template then just use it | ||
func (p *LaunchTemplateProvider) Get(ctx context.Context, constraints *v1alpha1.Constraints, instanceTypes []cloudprovider.InstanceType) (map[string][]cloudprovider.InstanceType, error) { | ||
// If Launch Template is directly specified then just use it | ||
if constraints.LaunchTemplate != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thoughts on making this a list?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do you mean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
1. Issue, if available:
#703
2. Description of changes:
Now separates instance types by SSM parameter and passes separate LaunchConfigs to the Fleet API.
3. Does this change impact docs?
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.