Skip to content

Commit

Permalink
Bump the gomod-backward-compatible group across 1 directory with 14 u…
Browse files Browse the repository at this point in the history
…pdates (#943)

* Update to support the TypedEventHandler interface
Related upstream change:
 - kubernetes-sigs/controller-runtime#2799

* Support the sha512sum Sprig template function

Bumps the gomod-backward-compatible group with 11 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [cloud.google.com/go/compute/metadata](https://github.com/googleapis/google-cloud-go) | `0.5.0` | `0.5.2` |
| [github.com/Masterminds/sprig/v3](https://github.com/Masterminds/sprig) | `3.2.3` | `3.3.0` |
| [github.com/gruntwork-io/terratest](https://github.com/gruntwork-io/terratest) | `0.47.0` | `0.47.2` |
| [github.com/hashicorp/hcp-sdk-go](https://github.com/hashicorp/hcp-sdk-go) | `0.110.0` | `0.115.0` |
| [github.com/onsi/gomega](https://github.com/onsi/gomega) | `1.34.1` | `1.34.2` |
| [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) | `1.20.3` | `1.20.4` |
| [golang.org/x/crypto](https://github.com/golang/crypto) | `0.26.0` | `0.27.0` |
| [google.golang.org/api](https://github.com/googleapis/google-api-go-client) | `0.192.0` | `0.199.0` |
| [k8s.io/apiextensions-apiserver](https://github.com/kubernetes/apiextensions-apiserver) | `0.30.3` | `0.31.1` |
| [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) | `0.18.4` | `0.19.0` |
| [nhooyr.io/websocket](https://github.com/nhooyr/websocket-old) | `1.8.11` | `1.8.17` |



Updates `cloud.google.com/go/compute/metadata` from 0.5.0 to 0.5.2
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md)
- [Commits](googleapis/google-cloud-go@v0.5.0...auth/v0.5.2)

Updates `github.com/Masterminds/sprig/v3` from 3.2.3 to 3.3.0
- [Release notes](https://github.com/Masterminds/sprig/releases)
- [Changelog](https://github.com/Masterminds/sprig/blob/master/CHANGELOG.md)
- [Commits](Masterminds/sprig@v3.2.3...v3.3.0)

Updates `github.com/gruntwork-io/terratest` from 0.47.0 to 0.47.2
- [Release notes](https://github.com/gruntwork-io/terratest/releases)
- [Commits](gruntwork-io/terratest@v0.47.0...v0.47.2)

Updates `github.com/hashicorp/hcp-sdk-go` from 0.110.0 to 0.115.0
- [Release notes](https://github.com/hashicorp/hcp-sdk-go/releases)
- [Changelog](https://github.com/hashicorp/hcp-sdk-go/blob/main/CHANGELOG.md)
- [Commits](hashicorp/hcp-sdk-go@v0.110.0...v0.115.0)

Updates `github.com/onsi/gomega` from 1.34.1 to 1.34.2
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](onsi/gomega@v1.34.1...v1.34.2)

Updates `github.com/prometheus/client_golang` from 1.20.3 to 1.20.4
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](prometheus/client_golang@v1.20.3...v1.20.4)

Updates `golang.org/x/crypto` from 0.26.0 to 0.27.0
- [Commits](golang/crypto@v0.26.0...v0.27.0)

Updates `google.golang.org/api` from 0.192.0 to 0.199.0
- [Release notes](https://github.com/googleapis/google-api-go-client/releases)
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md)
- [Commits](googleapis/google-api-go-client@v0.192.0...v0.199.0)

Updates `k8s.io/apiextensions-apiserver` from 0.30.3 to 0.31.1
- [Release notes](https://github.com/kubernetes/apiextensions-apiserver/releases)
- [Commits](kubernetes/apiextensions-apiserver@v0.30.3...v0.31.1)

Updates `k8s.io/apimachinery` from 0.30.3 to 0.31.1
- [Commits](kubernetes/apimachinery@v0.30.3...v0.31.1)

Updates `k8s.io/client-go` from 0.30.3 to 0.31.1
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](kubernetes/client-go@v0.30.3...v0.31.1)

Updates `k8s.io/utils` from 0.0.0-20230726121419-3b25d923346b to 0.0.0-20240711033017-18e509b52bc8
- [Commits](https://github.com/kubernetes/utils/commits)

Updates `sigs.k8s.io/controller-runtime` from 0.18.4 to 0.19.0
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md)
- [Commits](kubernetes-sigs/controller-runtime@v0.18.4...v0.19.0)

Updates `nhooyr.io/websocket` from 1.8.11 to 1.8.17
- [Release notes](https://github.com/nhooyr/websocket-old/releases)
- [Commits](https://github.com/nhooyr/websocket-old/commits/v1.8.17)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/compute/metadata
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gomod-backward-compatible
- dependency-name: github.com/Masterminds/sprig/v3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: gomod-backward-compatible
- dependency-name: github.com/gruntwork-io/terratest
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gomod-backward-compatible
- dependency-name: github.com/hashicorp/hcp-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: gomod-backward-compatible
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gomod-backward-compatible
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gomod-backward-compatible
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: gomod-backward-compatible
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: gomod-backward-compatible
- dependency-name: k8s.io/apiextensions-apiserver
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: gomod-backward-compatible
- dependency-name: k8s.io/apimachinery
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: gomod-backward-compatible
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: gomod-backward-compatible
- dependency-name: k8s.io/utils
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gomod-backward-compatible
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: gomod-backward-compatible
- dependency-name: nhooyr.io/websocket
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gomod-backward-compatible
...

Signed-off-by: dependabot[bot] <[email protected]>


---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ben Ash <[email protected]>
  • Loading branch information
dependabot[bot] and benashz authored Oct 4, 2024
1 parent 60a4bd2 commit a8c870b
Show file tree
Hide file tree
Showing 6 changed files with 206 additions and 201 deletions.
30 changes: 15 additions & 15 deletions controllers/eventhandlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ type enqueueRefRequestsHandler struct {
}

func (e *enqueueRefRequestsHandler) Create(ctx context.Context,
evt event.CreateEvent, q workqueue.RateLimitingInterface,
evt event.CreateEvent, q workqueue.TypedRateLimitingInterface[reconcile.Request],
) {
e.enqueue(ctx, q, evt.Object)
}

func (e *enqueueRefRequestsHandler) Update(ctx context.Context,
evt event.UpdateEvent, q workqueue.RateLimitingInterface,
evt event.UpdateEvent, q workqueue.TypedRateLimitingInterface[reconcile.Request],
) {
if evt.ObjectOld == nil {
return
Expand All @@ -73,19 +73,19 @@ func (e *enqueueRefRequestsHandler) Update(ctx context.Context,
}
}

func (e *enqueueRefRequestsHandler) Delete(ctx context.Context,
evt event.DeleteEvent, _ workqueue.RateLimitingInterface,
func (e *enqueueRefRequestsHandler) Delete(_ context.Context,
evt event.DeleteEvent, _ workqueue.TypedRateLimitingInterface[reconcile.Request],
) {
e.refCache.Prune(e.kind, client.ObjectKeyFromObject(evt.Object))
}

func (e *enqueueRefRequestsHandler) Generic(ctx context.Context,
_ event.GenericEvent, _ workqueue.RateLimitingInterface,
func (e *enqueueRefRequestsHandler) Generic(_ context.Context,
_ event.GenericEvent, _ workqueue.TypedRateLimitingInterface[reconcile.Request],
) {
}

func (e *enqueueRefRequestsHandler) enqueue(ctx context.Context,
q workqueue.RateLimitingInterface, o client.Object,
q workqueue.TypedRateLimitingInterface[reconcile.Request], o client.Object,
) {
logger := log.FromContext(ctx).WithName(
"enqueueRefRequestsHandler").
Expand Down Expand Up @@ -138,17 +138,17 @@ type enqueueOnDeletionRequestHandler struct {
}

func (e *enqueueOnDeletionRequestHandler) Create(_ context.Context,
_ event.CreateEvent, _ workqueue.RateLimitingInterface,
_ event.CreateEvent, _ workqueue.TypedRateLimitingInterface[reconcile.Request],
) {
}

func (e *enqueueOnDeletionRequestHandler) Update(_ context.Context,
_ event.UpdateEvent, _ workqueue.RateLimitingInterface,
_ event.UpdateEvent, _ workqueue.TypedRateLimitingInterface[reconcile.Request],
) {
}

func (e *enqueueOnDeletionRequestHandler) Delete(ctx context.Context,
evt event.DeleteEvent, q workqueue.RateLimitingInterface,
evt event.DeleteEvent, q workqueue.TypedRateLimitingInterface[reconcile.Request],
) {
logger := log.FromContext(ctx).WithName("enqueueOnDeletionRequestHandler").
WithValues("ownerGVK", e.gvk)
Expand Down Expand Up @@ -179,7 +179,7 @@ func (e *enqueueOnDeletionRequestHandler) Delete(ctx context.Context,
}

func (e *enqueueOnDeletionRequestHandler) Generic(ctx context.Context,
_ event.GenericEvent, _ workqueue.RateLimitingInterface,
_ event.GenericEvent, _ workqueue.TypedRateLimitingInterface[reconcile.Request],
) {
}

Expand All @@ -189,16 +189,16 @@ type enqueueDelayingSyncEventHandler struct {
enqueueDurationForJitter time.Duration
}

func (e *enqueueDelayingSyncEventHandler) Create(_ context.Context, _ event.CreateEvent, _ workqueue.RateLimitingInterface) {
func (e *enqueueDelayingSyncEventHandler) Create(_ context.Context, _ event.CreateEvent, _ workqueue.TypedRateLimitingInterface[reconcile.Request]) {
}

func (e *enqueueDelayingSyncEventHandler) Update(_ context.Context, _ event.UpdateEvent, _ workqueue.RateLimitingInterface) {
func (e *enqueueDelayingSyncEventHandler) Update(_ context.Context, _ event.UpdateEvent, _ workqueue.TypedRateLimitingInterface[reconcile.Request]) {
}

func (e *enqueueDelayingSyncEventHandler) Delete(_ context.Context, _ event.DeleteEvent, _ workqueue.RateLimitingInterface) {
func (e *enqueueDelayingSyncEventHandler) Delete(_ context.Context, _ event.DeleteEvent, _ workqueue.TypedRateLimitingInterface[reconcile.Request]) {
}

func (e *enqueueDelayingSyncEventHandler) Generic(ctx context.Context, evt event.GenericEvent, q workqueue.RateLimitingInterface) {
func (e *enqueueDelayingSyncEventHandler) Generic(ctx context.Context, evt event.GenericEvent, q workqueue.TypedRateLimitingInterface[reconcile.Request]) {
logger := log.FromContext(ctx).WithName("enqueueDelayingSyncEventHandler")
if evt.Object == nil {
logger.Error(nil,
Expand Down
58 changes: 29 additions & 29 deletions controllers/eventhandlers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func Test_enqueueRefRequestsHandler_Create(t *testing.T) {
refCache: cache,
createEvents: createEvents,
q: &DelegatingQueue{
Interface: workqueue.New(),
TypedRateLimitingInterface: workqueue.NewTypedRateLimitingQueue[reconcile.Request](nil),
},
wantAddedAfter: wantAddedAfterValid,
maxRequeueAfter: time.Second * 10,
Expand All @@ -122,7 +122,7 @@ func Test_enqueueRefRequestsHandler_Create(t *testing.T) {
refCache: cache,
createEvents: createEvents,
q: &DelegatingQueue{
Interface: workqueue.New(),
TypedRateLimitingInterface: workqueue.NewTypedRateLimitingQueue[reconcile.Request](nil),
},
wantAddedAfter: wantAddedAfterValid,
wantRefCache: cache,
Expand All @@ -133,7 +133,7 @@ func Test_enqueueRefRequestsHandler_Create(t *testing.T) {
refCache: cache,
createEvents: createEvents,
q: &DelegatingQueue{
Interface: workqueue.New(),
TypedRateLimitingInterface: workqueue.NewTypedRateLimitingQueue[reconcile.Request](nil),
},
wantAddedAfter: wantAddedAfterValid,
maxRequeueAfter: time.Second * -1,
Expand All @@ -146,7 +146,7 @@ func Test_enqueueRefRequestsHandler_Create(t *testing.T) {
createEvents: createEvents,
validator: &validatorFunc{},
q: &DelegatingQueue{
Interface: workqueue.New(),
TypedRateLimitingInterface: workqueue.NewTypedRateLimitingQueue[reconcile.Request](nil),
},
wantValidObjects: []client.Object{
createEvent.Object,
Expand All @@ -162,7 +162,7 @@ func Test_enqueueRefRequestsHandler_Create(t *testing.T) {
createEvents: createEvents,
validator: &validatorFunc{},
q: &DelegatingQueue{
Interface: workqueue.New(),
TypedRateLimitingInterface: workqueue.NewTypedRateLimitingQueue[reconcile.Request](nil),
},
wantInvalidObjects: []client.Object{
createEvent.Object,
Expand All @@ -178,7 +178,7 @@ func Test_enqueueRefRequestsHandler_Create(t *testing.T) {
},
createEvents: createEvents,
q: &DelegatingQueue{
Interface: workqueue.New(),
TypedRateLimitingInterface: workqueue.NewTypedRateLimitingQueue[reconcile.Request](nil),
},
},
}
Expand Down Expand Up @@ -250,7 +250,7 @@ func Test_enqueueRefRequestsHandler_Update(t *testing.T) {
refCache: cache,
updateEvents: updateEventsEnqueue,
q: &DelegatingQueue{
Interface: workqueue.New(),
TypedRateLimitingInterface: workqueue.NewTypedRateLimitingQueue[reconcile.Request](nil),
},
wantAddedAfter: wantAddedAfterValid,
wantRefCache: cache,
Expand All @@ -262,7 +262,7 @@ func Test_enqueueRefRequestsHandler_Update(t *testing.T) {
updateEvents: updateEventsEnqueue,
validator: &validatorFunc{},
q: &DelegatingQueue{
Interface: workqueue.New(),
TypedRateLimitingInterface: workqueue.NewTypedRateLimitingQueue[reconcile.Request](nil),
},
wantValidObjects: []client.Object{
objectNew,
Expand All @@ -278,7 +278,7 @@ func Test_enqueueRefRequestsHandler_Update(t *testing.T) {
updateEvents: updateEventsEnqueue,
validator: &validatorFunc{},
q: &DelegatingQueue{
Interface: workqueue.New(),
TypedRateLimitingInterface: workqueue.NewTypedRateLimitingQueue[reconcile.Request](nil),
},
wantInvalidObjects: []client.Object{
objectNew,
Expand All @@ -294,7 +294,7 @@ func Test_enqueueRefRequestsHandler_Update(t *testing.T) {
},
updateEvents: updateEventsEnqueue,
q: &DelegatingQueue{
Interface: workqueue.New(),
TypedRateLimitingInterface: workqueue.NewTypedRateLimitingQueue[reconcile.Request](nil),
},
},
{
Expand All @@ -303,7 +303,7 @@ func Test_enqueueRefRequestsHandler_Update(t *testing.T) {
refCache: cache,
updateEvents: updateEventsNoEnqueue,
q: &DelegatingQueue{
Interface: workqueue.New(),
TypedRateLimitingInterface: workqueue.NewTypedRateLimitingQueue[reconcile.Request](nil),
},
},
}
Expand Down Expand Up @@ -353,7 +353,7 @@ func Test_enqueueRefRequestsHandler_Delete(t *testing.T) {
kind: SecretTransformation,
refCache: cache,
q: &DelegatingQueue{
Interface: workqueue.New(),
TypedRateLimitingInterface: workqueue.NewTypedRateLimitingQueue[reconcile.Request](nil),
},
deleteEvents: []event.DeleteEvent{
{
Expand All @@ -369,7 +369,7 @@ func Test_enqueueRefRequestsHandler_Delete(t *testing.T) {
kind: SecretTransformation,
refCache: cache,
q: &DelegatingQueue{
Interface: workqueue.New(),
TypedRateLimitingInterface: workqueue.NewTypedRateLimitingQueue[reconcile.Request](nil),
},
deleteEvents: []event.DeleteEvent{
{
Expand All @@ -383,7 +383,7 @@ func Test_enqueueRefRequestsHandler_Delete(t *testing.T) {
kind: SecretTransformation,
refCache: cache,
q: &DelegatingQueue{
Interface: workqueue.New(),
TypedRateLimitingInterface: workqueue.NewTypedRateLimitingQueue[reconcile.Request](nil),
},
deleteEvents: []event.DeleteEvent{
{
Expand Down Expand Up @@ -469,29 +469,29 @@ func assertEnqueueRefRequestHandler(t *testing.T, ctx context.Context, tt testCa
}
}

var _ workqueue.RateLimitingInterface = &DelegatingQueue{}
var _ workqueue.TypedRateLimitingInterface[reconcile.Request] = &DelegatingQueue{}

type DelegatingQueue struct {
workqueue.Interface
workqueue.TypedRateLimitingInterface[reconcile.Request]
mu sync.Mutex
AddedAfter []any
AddedAfterDuration []time.Duration
}

// AddAfter implements RateLimitingInterface.
func (q *DelegatingQueue) AddAfter(item interface{}, d time.Duration) {
func (q *DelegatingQueue) AddAfter(item reconcile.Request, d time.Duration) {
q.mu.Lock()
defer q.mu.Unlock()
q.AddedAfter = append(q.AddedAfter, item)
q.AddedAfterDuration = append(q.AddedAfterDuration, d)
q.Add(item)
}

func (q *DelegatingQueue) AddRateLimited(item interface{}) {}
func (q *DelegatingQueue) AddRateLimited(item reconcile.Request) {}

func (q *DelegatingQueue) Forget(item interface{}) {}
func (q *DelegatingQueue) Forget(item reconcile.Request) {}

func (q *DelegatingQueue) NumRequeues(item interface{}) int {
func (q *DelegatingQueue) NumRequeues(item reconcile.Request) int {
return 0
}

Expand Down Expand Up @@ -553,7 +553,7 @@ func Test_enqueueOnDeletionRequestHandler_Delete(t *testing.T) {
deleteEventSupported,
},
q: &DelegatingQueue{
Interface: workqueue.New(),
TypedRateLimitingInterface: workqueue.NewTypedRateLimitingQueue[reconcile.Request](nil),
},
gvk: gvk,
wantAddedAfter: wantAddedAfterValid,
Expand All @@ -567,7 +567,7 @@ func Test_enqueueOnDeletionRequestHandler_Delete(t *testing.T) {
deleteEventSupported,
},
q: &DelegatingQueue{
Interface: workqueue.New(),
TypedRateLimitingInterface: workqueue.NewTypedRateLimitingQueue[reconcile.Request](nil),
},
gvk: gvk,
wantAddedAfter: wantAddedAfterValid,
Expand All @@ -581,7 +581,7 @@ func Test_enqueueOnDeletionRequestHandler_Delete(t *testing.T) {
deleteEventSupported,
},
q: &DelegatingQueue{
Interface: workqueue.New(),
TypedRateLimitingInterface: workqueue.NewTypedRateLimitingQueue[reconcile.Request](nil),
},
gvk: gvk,
wantAddedAfter: wantAddedAfterValid,
Expand All @@ -594,7 +594,7 @@ func Test_enqueueOnDeletionRequestHandler_Delete(t *testing.T) {
deleteEventSupported,
},
q: &DelegatingQueue{
Interface: workqueue.New(),
TypedRateLimitingInterface: workqueue.NewTypedRateLimitingQueue[reconcile.Request](nil),
},
gvk: gvk,
wantAddedAfter: wantAddedAfterValid,
Expand All @@ -607,7 +607,7 @@ func Test_enqueueOnDeletionRequestHandler_Delete(t *testing.T) {
deleteEventUnsupported,
},
q: &DelegatingQueue{
Interface: workqueue.New(),
TypedRateLimitingInterface: workqueue.NewTypedRateLimitingQueue[reconcile.Request](nil),
},
gvk: gvk,
},
Expand Down Expand Up @@ -671,7 +671,7 @@ func Test_enqueueOnDeletionRequestHandler_Create(t *testing.T) {
createEvent,
},
q: &DelegatingQueue{
Interface: workqueue.New(),
TypedRateLimitingInterface: workqueue.NewTypedRateLimitingQueue[reconcile.Request](nil),
},
gvk: gvk,
wantAddedAfter: nil,
Expand All @@ -683,7 +683,7 @@ func Test_enqueueOnDeletionRequestHandler_Create(t *testing.T) {
createEventUnsupported,
},
q: &DelegatingQueue{
Interface: workqueue.New(),
TypedRateLimitingInterface: workqueue.NewTypedRateLimitingQueue[reconcile.Request](nil),
},
gvk: gvk,
wantAddedAfter: nil,
Expand Down Expand Up @@ -767,7 +767,7 @@ func Test_enqueueOnDeletionRequestHandler_Update(t *testing.T) {
updateEvent,
},
q: &DelegatingQueue{
Interface: workqueue.New(),
TypedRateLimitingInterface: workqueue.NewTypedRateLimitingQueue[reconcile.Request](nil),
},
gvk: gvk,
wantAddedAfter: nil,
Expand All @@ -779,7 +779,7 @@ func Test_enqueueOnDeletionRequestHandler_Update(t *testing.T) {
updateEventUnsupported,
},
q: &DelegatingQueue{
Interface: workqueue.New(),
TypedRateLimitingInterface: workqueue.NewTypedRateLimitingQueue[reconcile.Request](nil),
},
gvk: gvk,
wantAddedAfter: nil,
Expand Down
4 changes: 2 additions & 2 deletions controllers/vaultdynamicsecret_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ func Test_computeRelativeHorizonWithJitter(t *testing.T) {
},
minHorizon: 1 * time.Second,
wantMinHorizon: time.Duration(.8 * float64(time.Second)),
wantMaxHorizon: time.Duration(1 * time.Second),
wantMaxHorizon: 1 * time.Second,
wantInWindow: true,
},
}
Expand Down Expand Up @@ -1157,7 +1157,7 @@ func TestVaultDynamicSecretReconciler_vaultClientCallback(t *testing.T) {
cs := source.Channel(r.SourceCh, handler)

q := &DelegatingQueue{
Interface: workqueue.New(),
TypedRateLimitingInterface: workqueue.NewTypedRateLimitingQueue[reconcile.Request](nil),
}

go func() {
Expand Down
Loading

0 comments on commit a8c870b

Please sign in to comment.