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

fix: Change setNodeSelector to use a single nodeSelectorTerm #94

Merged
merged 1 commit into from
Sep 20, 2018

Conversation

Filbird
Copy link
Member

@Filbird Filbird commented Sep 20, 2018

Context

Our current implementation of setNodeSelector appends multiple nodeSelectorTerms to the spec. This leads to an OR scheduling behavior where the pod can be scheduled on any node that is labled with any of the nodeSelectors.

I believe we desire an AND scheduling behavior where the pod can be scheduled on any node that is labled with ALL of the nodeSelectors. This PR changes the implementation of setNodeSelector to honor this AND behavior of scheduling.

Objective

Update setNodeSelector to append multiple keys to a single nodeSelectorTerm

References

screwdriver-cd/screwdriver#757
https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
kubernetes/kubernetes#44349
screwdriver-cd/executor-k8s-vm#43

@Filbird Filbird merged commit c979c97 into master Sep 20, 2018
@tkyi tkyi deleted the nodeSelector branch July 6, 2020 20:49
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