Fix Watch follow parameter detection#2616
Conversation
The generated client now emits parameter names and types on separate lines. Watch still searches for the old combined line, so it sends watch=True to pod log methods and the generated client rejects the unexpected keyword. Match the current generated format and update the fixture that covers log streaming.
|
Welcome @tamird! |
|
@goutamadwant could you review this PR? |
goutamadwant
left a comment
There was a problem hiding this comment.
Thanks, this looks good to me.
This covers the same regression I tried to address in #2612, but does it with the smaller change by updating the existing fixture to the current generated docstring shape. I agree this is the cleaner approach.
One small non-blocking note: this also addresses #2610, which was the original report linked from #2612. It may be worth linking that issue too, or marking it as a duplicate of #2615.
|
Hey @tamird, are you planning to move this PR forward, or should we implement a workaround instead? |
@opokornyy is there action required from me? Happy to make changes; were any requested? |
No changes were requested on my end. @roycaihw, would you mind taking a look when you have a chance? Thanks! |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: goutamadwant, tamird, yliaog 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 |
|
thanks for the PR |
587a1a1
into
kubernetes-client:master
What type of PR is this?
/kind bug
What this PR does / why we need it:
OpenAPI-generated methods now document parameter names and types on separate
lines.
Watchstill looked for the previous combined:param bool follow:form, so it sent
watch=Trueto pod log methods. Those methods reject theunexpected keyword instead of streaming logs.
Match the generated
:param follow:form and update the existing test fixtureto use the current generated docstring shape.
Which issue(s) this PR fixes:
Fixes #2615
Special notes for your reviewer:
None.
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: