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

Add tolerations pod option #2763

Merged
merged 1 commit into from
Apr 10, 2022
Merged

Add tolerations pod option #2763

merged 1 commit into from
Apr 10, 2022

Conversation

bentsherman
Copy link
Member

This PR adds the tolerations pod option, which allows a pod to "tolerate" certain node taints during scheduling. Can be useful for situations where a node is designated for a specific use case (special CPU type, belongs to certain user group, etc), so it will only be scheduled to users who specifically tolerate the taint.

I also reorganized some of the pod-related classes to be more readable. I pushed two separate commits so that you can distinguish the toleration-specific changes from the general changes.

Copy link
Member

@pditommaso pditommaso left a comment

Choose a reason for hiding this comment

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

Hi, I think is useful but there are several unrelated changes that make the review difficult. Try to keep the PR as much as possible self-contained. Thanks!

@bentsherman
Copy link
Member Author

I wanted to clean up some of the k8s-related files to make them easier to read, but I wasn't sure if they justified a separate PR, so I included them with this one. You can inspect the two commits separately to make the review easier. Or if you prefer I could make a separate "general k8s cleanup" PR.

Signed-off-by: Ben Sherman <bentshermann@gmail.com>
@bentsherman
Copy link
Member Author

Okay I moved the k8s cleanup to a separate draft PR for later. Now you should only see the feature-specific changes.

Copy link
Member

@pditommaso pditommaso left a comment

Choose a reason for hiding this comment

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

Ok, nice 👍

@pditommaso pditommaso merged commit 7f7cdad into master Apr 10, 2022
@pditommaso pditommaso deleted the ben/tolerations-pod-option branch April 10, 2022 07:18
@pditommaso pditommaso added this to the 22.04.0 milestone Apr 23, 2022
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.

None yet

2 participants