You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
allow to set a custom timeout when making the GET ..?watch=true request to Kubernetes API if needed.
Description
Currently the timeout is always None, which we find to be a reason for issues like #204 .
With this patch controller authors may override the timeout passed by kopf to the underlying aiohttp session request by doing something like this in their controller code:
Coveralls decrease is all fine. It fluctuates a little bit here & there.
Regarding the feature: Can you please refactor it to make the timeout as float instead of aiohttp.ClientTimeout?
Usage of aiohttp is a hidden detail of the current implementation and can change in the future. The session/client timeouts will probably stay, just differently implemented inside of kopf.clients.*.
UPD: Actually, Optional[float] = None, not just float.
Commented by pshchelo at 2020-03-15 11:09:17+00:00
Ack, sounds reasonable, will do
The text was updated successfully, but these errors were encountered:
What do these changes do?
allow to set a custom timeout when making the
GET ..?watch=true
request to Kubernetes API if needed.Description
Currently the timeout is always None, which we find to be a reason for issues like #204 .
With this patch controller authors may override the timeout passed by kopf to the underlying aiohttp session request by doing something like this in their controller code:
The default behavior is not changed.
Issues/PRs
Issues: #204
Type of changes
Checklist
CONTRIBUTORS.txt
interestingly enough, coveralls job fails and reports as not covered lines I did not change/add...
Coveralls decrease is all fine. It fluctuates a little bit here & there.
Regarding the feature: Can you please refactor it to make the timeout as
float
instead ofaiohttp.ClientTimeout
?Usage of
aiohttp
is a hidden detail of the current implementation and can change in the future. The session/client timeouts will probably stay, just differently implemented inside ofkopf.clients.*
.UPD: Actually,
Optional[float] = None
, not justfloat
.Ack, sounds reasonable, will do
The text was updated successfully, but these errors were encountered: