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

Adding GetFieldSelector() to client.EventInterface #5532

Merged
merged 1 commit into from
Mar 20, 2015

Conversation

nikhiljindal
Copy link
Contributor

This is required so that kubectl can call client.EventInterface.List() with the appropriate field selector.

@googlebot
Copy link

Thanks for your pull request.

It looks like this may be your first contribution to a Google open source project, in which case you'll need to sign a Contributor License Agreement (CLA) at https://cla.developers.google.com/.

If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check the information on your CLA or see this help article on setting the email on your git commits.

Once you've done that, please reply here to let us know. If you signed the CLA as a corporation, please let us know the company's name.

@nikhiljindal
Copy link
Contributor Author

Verified that e2e tests pass :)

@nikhiljindal
Copy link
Contributor Author

Looks like @lavalamp is out this week.
@bgrant0607 @smarterclayton ?

@bgrant0607
Copy link
Member

Sorry, I'm swamped. I suggest @saad-ali.

@saad-ali
Copy link
Member

I'll take a look

@@ -41,6 +41,8 @@ type EventInterface interface {
// Search finds events about the specified object
Search(objOrRef runtime.Object) (*api.EventList, error)
Delete(name string) error
// Returns the appropriate field selector based on the API version being used to communicate with the server.
GetFieldSelector(involvedObjectName, involvedObjectNamespace, involvedObjectKind, involvedObjectUID *string) labels.Selector
Copy link
Member

Choose a reason for hiding this comment

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

I think this comment would be little clearer:

Returns a field selector that can be used to filter List and Watch queries to return only events about the specified object.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated the comment.

@saad-ali
Copy link
Member

LGTM mod a few nits

@nikhiljindal
Copy link
Contributor Author

Thanks!
Replied to all comments and updated the code accordingly. Ready for another look.

@saad-ali
Copy link
Member

LGTM. Will merge on green.

saad-ali added a commit that referenced this pull request Mar 20, 2015
Adding GetFieldSelector() to client.EventInterface
@saad-ali saad-ali merged commit f57540c into kubernetes:master Mar 20, 2015
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.

5 participants