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

move lowest-n instance type options to generic packing pkg #456

Merged
merged 2 commits into from
Jun 15, 2021

Conversation

bwagner5
Copy link
Contributor

Issue #, if available:
#438

Description of changes:

  • Move the truncation of instance type options from the cloud provider specific implementation to the generic packing pkg.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@bwagner5 bwagner5 requested a review from ellistarn June 15, 2021 20:51
@@ -28,6 +28,11 @@ import (
"k8s.io/apimachinery/pkg/api/resource"
)

const (
// maxInstanceTypes defines the number of instance type options to return to the cloud provider
maxInstanceTypes = 20
Copy link
Contributor

@ellistarn ellistarn Jun 15, 2021

Choose a reason for hiding this comment

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

Consider making this value public so that cloud providers can override it as necessary. Eventually, this should probably live in a configmap.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good idea

ellistarn
ellistarn previously approved these changes Jun 15, 2021
@ellistarn ellistarn merged commit 8500d7d into aws:main Jun 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants