Closed Kulagin-G closed 6 months ago
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle rotten
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/reopen
/remove-lifecycle rotten
Please send feedback to sig-contributor-experience at kubernetes/community.
/close not-planned
@k8s-triage-robot: Closing this issue, marking it as "Not Planned".
There is a part of my code where I use
*dynamic.DynamicClient
client withList
resources by requested parameters:The real request time can take about
5s
, and even if I setTimeoutSeconds
to1s
I don't see any effect.Based on my quick research:
TimeoutSeconds
as aurl.Values
param value to the*rest.Request
object during request preparation- https://github.com/kubernetes/client-go/blob/v0.27.4/rest/request.go#L372client
invokesDo()
method withtimeout
set as default value 0 every time - https://github.com/kubernetes/client-go/blob/master/rest/request.go#L1061req.URL.Query()
example -labelSelector=prometheus%2Fis-infra-app-metric%3Dtrue%2Capplications.argoproj.io%2Ftemplate_type%3Dapplication&timeoutSeconds=1
I'm not sure
request.timeout
should be overridden, but thistimeout
is being used in context for dropping a request that looks like a target place to override with value frommetav1.ListOptions
- https://github.com/kubernetes/client-go/blob/v0.27.4/rest/request.go#L969Correct me please if I'm wrong. Thank you!
P.S. I use the latest release version
k8s.io/client-go@v0.27.4
, the same behavior for the latestv0.29.0-alpha.0
P.S.S.LabelSelector
string is also being added tor.params
and works as expected.