-
Notifications
You must be signed in to change notification settings - Fork 185
Fixed Watch.unmarshal_event when data is not a JSON-serialized object #171
Conversation
Welcome @Ark-kun! |
Codecov Report
@@ Coverage Diff @@
## master #171 +/- ##
==========================================
- Coverage 93.41% 93.35% -0.07%
==========================================
Files 13 13
Lines 1398 1400 +2
==========================================
+ Hits 1306 1307 +1
- Misses 92 93 +1
Continue to review full report at Codecov.
|
/cc @jiahuif |
@roycaihw: GitHub didn't allow me to request PR reviews from the following users: jiahuif. Note that only kubernetes-client members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
As discussed here kubernetes-client/python#982 (comment) If the object has a field named "object", the fix would not work. We should not rely on one of the field to determine the type. |
Unfortunately, dictionaries are duck-typed by design. Can you please suggest another way to fix the common path? |
Also when the log line represents an empty array |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Ark-kun, roycaihw The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Log streaming using Watch was introduced in #93, but the users faced errors when the log line was a single number or an empty string.
This PR fixes those issues.
Fixes kubernetes-client/python#982
Fixes kubernetes-client/python#983