Skip to content
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

Add Timeout for kubeclient #666

Merged
merged 2 commits into from
Jun 6, 2019
Merged

Conversation

dineshba
Copy link
Contributor

@dineshba dineshba commented Jun 6, 2019

Adding timeout for kubeclient by adding timeout for restclient

I have made two commits

  • Move common logic into a method called getKubeValues
  • Added timeout for kubecfg

Note: I have tested the kubecfg by providing different timeout value and it works.

@dineshba dineshba force-pushed the timeout-for-kubeclient branch 2 times, most recently from 6a1770e to c601d0e Compare June 6, 2019 06:53
Copy link
Member

@sgotti sgotti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dineshba Thanks for your PR. it LGTM.

Looking at the current go client code https://github.com/kubernetes/client-go/blob/cd12199def5832afb81d78426c3b2758ee70110f/rest/request.go#L722 looks like the timeout is internally used to set a context.WithTimeout

cmd/common.go Outdated Show resolved Hide resolved
@dineshba dineshba force-pushed the timeout-for-kubeclient branch from c601d0e to 2f4c21c Compare June 6, 2019 11:39
@sgotti sgotti merged commit 38a7ad0 into sorintlab:master Jun 6, 2019
@sgotti sgotti added this to the v0.14.0 milestone Jul 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants