-
Notifications
You must be signed in to change notification settings - Fork 38
Add support for watch @ resourceVersion, and improve tests. #45
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
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: brendandburns The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
drubin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comment about style, but other than that looks good.
kubernetes/src/kubernetes/watch.rb
Outdated
| path + query | ||
| end | ||
|
|
||
| def connect(path, resource_version, &_block) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe its worth setting this as resource_version = nil so it isn't a breaking change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done. (learn something new about Ruby every day :)
examples/watch/watch.rb
Outdated
| watch = Kubernetes::Watch.new(client) | ||
|
|
||
| watch.connect('/api/v1/namespaces') do |obj| | ||
| watch.connect('/api/v1/namespaces', nil) do |obj| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it makes sense to annotate these examples if we have more than one param and especially if the value is nil
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is fixed by the comment above....
|
comments addressed, please take another look. |
|
/lgtm |
|
New changes are detected. LGTM label has been removed. |
@drubin @cben
Builds on #40, will rebase after #40 merges.