build(deps): bump k8s.io/component-base from 0.28.2 to 0.28.4

Bumps [k8s.io/component-base](https://github.com/kubernetes/component-base) from 0.28.2 to 0.28.4.
- [Commits](https://github.com/kubernetes/component-base/compare/v0.28.2...v0.28.4)

---
updated-dependencies:
- dependency-name: k8s.io/component-base
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
dependabot[bot]
2023-12-13 00:26:34 +00:00
committed by GitHub
parent 8f1479132f
commit 6726a2aebf
4 changed files with 25 additions and 22 deletions

View File

@@ -126,14 +126,17 @@ type rudimentaryErrorBackoff struct {
// OnError will block if it is called more often than the embedded period time.
// This will prevent overly tight hot error loops.
func (r *rudimentaryErrorBackoff) OnError(error) {
now := time.Now() // start the timer before acquiring the lock
r.lastErrorTimeLock.Lock()
defer r.lastErrorTimeLock.Unlock()
d := time.Since(r.lastErrorTime)
if d < r.minPeriod {
// If the time moves backwards for any reason, do nothing
time.Sleep(r.minPeriod - d)
}
d := now.Sub(r.lastErrorTime)
r.lastErrorTime = time.Now()
r.lastErrorTimeLock.Unlock()
// Do not sleep with the lock held because that causes all callers of HandleError to block.
// We only want the current goroutine to block.
// A negative or zero duration causes time.Sleep to return immediately.
// If the time moves backwards for any reason, do nothing.
time.Sleep(r.minPeriod - d)
}
// GetCaller returns the caller of the function that calls it.

8
vendor/modules.txt vendored
View File

@@ -655,10 +655,10 @@ gopkg.in/yaml.v2
# gopkg.in/yaml.v3 v3.0.1
## explicit
gopkg.in/yaml.v3
# k8s.io/api v0.28.2
# k8s.io/api v0.28.4
## explicit; go 1.20
k8s.io/api/core/v1
# k8s.io/apimachinery v0.28.2
# k8s.io/apimachinery v0.28.4
## explicit; go 1.20
k8s.io/apimachinery/pkg/api/errors
k8s.io/apimachinery/pkg/api/resource
@@ -702,7 +702,7 @@ k8s.io/apimachinery/third_party/forked/golang/reflect
# k8s.io/apiserver v0.28.2
## explicit; go 1.20
k8s.io/apiserver/pkg/endpoints/responsewriter
# k8s.io/client-go v0.28.2
# k8s.io/client-go v0.28.4
## explicit; go 1.20
k8s.io/client-go/pkg/apis/clientauthentication
k8s.io/client-go/pkg/apis/clientauthentication/install
@@ -723,7 +723,7 @@ k8s.io/client-go/util/exec
k8s.io/client-go/util/flowcontrol
k8s.io/client-go/util/keyutil
k8s.io/client-go/util/workqueue
# k8s.io/component-base v0.28.2
# k8s.io/component-base v0.28.4
## explicit; go 1.20
k8s.io/component-base/logs/logreduction
# k8s.io/cri-api v0.28.2