Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

k8sutil: remove global defaultKubeAPIRequestTimeout#1936

Merged
hongchaodeng merged 1 commit intocoreos:masterfrom
hongchaodeng:f
Mar 6, 2018
Merged

k8sutil: remove global defaultKubeAPIRequestTimeout#1936
hongchaodeng merged 1 commit intocoreos:masterfrom
hongchaodeng:f

Conversation

@hongchaodeng
Copy link
Contributor

The watch stream in informer will break after 30s:

E0306 20:38:49.476999       1 streamwatcher.go:109] Unable to decode an event from the watch stream: net/http: request canceled (Client.Timeout exceeded while reading body)

The watch stream in informer will break after 30s.
@hongchaodeng
Copy link
Contributor Author

hongchaodeng commented Mar 6, 2018

Meanwhile, the upstream has been reviving the discussion of adding ctx into clients:
kubernetes/kubernetes#46503

We should make use of that for individual calls instead of making this timeout global.

@hasbro17
Copy link
Contributor

hasbro17 commented Mar 6, 2018

LGTM

@hongchaodeng hongchaodeng merged commit 8726b1a into coreos:master Mar 6, 2018
@hongchaodeng hongchaodeng deleted the f branch March 6, 2018 20:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants