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

First phase of scheduler refactor #931

Merged
merged 1 commit into from
Dec 7, 2021
Merged

First phase of scheduler refactor #931

merged 1 commit into from
Dec 7, 2021

Conversation

ellistarn
Copy link
Contributor

1. Issue, if available:

2. Description of changes:

3. Does this change impact docs?

  • Yes, PR includes docs updates
  • Yes, issue opened: link to issue
  • No

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

@netlify
Copy link

netlify bot commented Dec 6, 2021

✔️ Deploy Preview for karpenter-docs-prod ready!

🔨 Explore the source changes: 6dd0dfa

🔍 Inspect the deploy log: https://app.netlify.com/sites/karpenter-docs-prod/deploys/61aea2d7ca637e00072e9324

😎 Browse the preview: https://deploy-preview-931--karpenter-docs-prod.netlify.app

@@ -161,3 +190,91 @@ func (p *Provisioner) FilterProvisionable(ctx context.Context, pods []*v1.Pod) [
}
return provisionable
}

func (p *Provisioner) launch(ctx context.Context, constraints *v1alpha5.Constraints, packing *binpacking.Packing) error {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why did we collapse the launcher into this file btw? Don't feel too strongly about it either way

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It will become more apparent as I continue to refactor this, but essentially the logic got small enough that it didn't really make sense to have all of the overhead ~70 lines of code. Additionally, I'm going to be moving other provisioner behavior (e.g. batching/scheduling) elsewhere. You can think about the provisioner as becoming a renamed launcher.

@ellistarn ellistarn merged commit e21b84c into aws:main Dec 7, 2021
@ellistarn ellistarn deleted the refac branch December 7, 2021 19:40
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