mirror of
https://github.com/kubernetes/sample-controller.git
synced 2026-05-19 00:00:14 +08:00
client-go/rest: backoff with context support
The BackoffManager interface sleeps without considering the caller's context, i.e. cancellation is not supported. This alone is reason enough to deprecate it and to replace it with an interface that supports a context parameter. The other reason is that contextual logging needs that parameter. Kubernetes-commit: b15a1943d51adfb8c5e0185d58d25e038c3d6ade
This commit is contained in:
committed by
Kubernetes Publisher
parent
02ac61a70f
commit
ec76c5d4a5
@@ -10,10 +10,10 @@ godebug winsymlink=0
|
||||
|
||||
require (
|
||||
golang.org/x/time v0.7.0
|
||||
k8s.io/api v0.0.0-20250115201908-3f63dba05c7a
|
||||
k8s.io/apimachinery v0.0.0-20250115201602-f863467e6f42
|
||||
k8s.io/client-go v0.0.0-20250115202322-49eb6dc0666f
|
||||
k8s.io/code-generator v0.0.0-20250115203145-1ac7d7066340
|
||||
k8s.io/api v0.0.0
|
||||
k8s.io/apimachinery v0.0.0
|
||||
k8s.io/client-go v0.0.0
|
||||
k8s.io/code-generator v0.0.0
|
||||
k8s.io/klog/v2 v2.130.1
|
||||
)
|
||||
|
||||
@@ -58,3 +58,10 @@ require (
|
||||
sigs.k8s.io/structured-merge-diff/v4 v4.4.2 // indirect
|
||||
sigs.k8s.io/yaml v1.4.0 // indirect
|
||||
)
|
||||
|
||||
replace (
|
||||
k8s.io/api => ../api
|
||||
k8s.io/apimachinery => ../apimachinery
|
||||
k8s.io/client-go => ../client-go
|
||||
k8s.io/code-generator => ../code-generator
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user