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

Running node selector predicate on kubelet. #5715

Merged
merged 1 commit into from
Mar 23, 2015

Conversation

jszczepkowski
Copy link
Contributor

Added checking on kubelet if scheduled pods have matching node selector. This is the last step to fix #5207.

@jszczepkowski
Copy link
Contributor Author

CC @bgrant0607 @davidopp

@bgrant0607
Copy link
Member

cc @dchen1107

@bgrant0607
Copy link
Member

Feel free to reassign to load balance.

@@ -94,3 +98,14 @@ func (c *nodes) Update(minion *api.Node) (*api.Node, error) {
err := c.r.Put().Resource(c.resourceName()).Name(minion.Name).Body(minion).Do().Into(result)
return result, err
}

func (c *nodes) Watch(label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error) {
Copy link
Member

Choose a reason for hiding this comment

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

Add documentation for public method.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@saad-ali
Copy link
Member

LGTM mod nit

Added checking on kubelet if scheduled pods have matching node selector. This is the last step to fix kubernetes#5207.
@jszczepkowski
Copy link
Contributor Author

Comments applied, e2e tests pass.

@saad-ali
Copy link
Member

Thanks Jerzy. LGTM

saad-ali added a commit that referenced this pull request Mar 23, 2015
Running node selector predicate on kubelet.
@saad-ali saad-ali merged commit e8f7042 into kubernetes:master Mar 23, 2015
dchen1107 added a commit to dchen1107/kubernetes-1 that referenced this pull request Mar 24, 2015
jayunit100 pushed a commit to jayunit100/kubernetes that referenced this pull request Mar 26, 2015
akram pushed a commit to akram/kubernetes that referenced this pull request Apr 7, 2015
@jszczepkowski jszczepkowski deleted the kubelet-nodesel branch August 10, 2015 12:30
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.

Field selector for finding unscheduled pods: "DesiredState.Host=" or "CurrentState.Host="?
5 participants