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

feat: make instanceTypeFlexibilityThreshold configurable #7741

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Kab1r
Copy link

@Kab1r Kab1r commented Feb 15, 2025

Description

Adds --instance-type-flexibility-threshold / INSTANCE_TYPE_FLEXIBILITY_THRESHOLD with same default value of 5.

How was this change tested?

only basic functionality testing done

Does this change impact docs?

  • Yes, PR includes docs updates
  • Yes, Issue:
  • No

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

@Kab1r Kab1r requested a review from a team as a code owner February 15, 2025 00:06
@Kab1r Kab1r requested a review from rschalo February 15, 2025 00:06
Copy link

netlify bot commented Feb 15, 2025

Deploy Preview for karpenter-docs-prod ready!

Name Link
🔨 Latest commit 268055d
🔍 Latest deploy log https://app.netlify.com/sites/karpenter-docs-prod/deploys/67afda6c87762d000808b646
😎 Deploy Preview https://deploy-preview-7741--karpenter-docs-prod.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -222,7 +221,7 @@ func (p *DefaultProvider) launchInstance(ctx context.Context, nodeClass *v1.EC2N
reason, message := awserrors.ToReasonMessage(err)
return ec2types.CreateFleetInstance{}, cloudprovider.NewCreateError(fmt.Errorf("getting launch template configs, %w", err), reason, fmt.Sprintf("Error getting launch template configs: %s", message))
}
if err := p.checkODFallback(nodeClaim, instanceTypes, launchTemplateConfigs); err != nil {
if err := p.checkODFallback(ctx, nodeClaim, instanceTypes, launchTemplateConfigs); err != nil {
log.FromContext(ctx).Error(err, "failed while checking on-demand fallback")
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe this error message should be updated because it might be confusing -- this shouldn't prevent it from launching OD in this scenario so I don't see a reason for surfacing this as an option if it doesn't tangibly affect the business logic, only the logging

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.

2 participants