Skip to content

Commit 7c86046

Browse files
authored
Merge pull request dapr#8642 from JoshVanL/sentry-client-side-throttling
Remove client-side rate limiter from Sentry
2 parents 91391fe + 79ac26b commit 7c86046

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/release_notes/v1.15.4.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,4 +143,4 @@ Daprd would not close Scheduler gRPC connections to hosts which no longer exist.
143143

144144
### Solution
145145

146-
Daprd now closes connections to Scheduler hosts when they are no longer in the list of active hosts.
146+
Daprd now closes connections to Scheduler hosts when they are no longer in the list of active hosts.

pkg/sentry/server/validator/kubernetes/kubernetes.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import (
1717
"context"
1818
"errors"
1919
"fmt"
20+
"math"
2021
"strings"
2122

2223
"github.com/lestrrat-go/jwx/v2/jwt"
@@ -88,6 +89,9 @@ func New(opts Options) (validator.Validator, error) {
8889
return nil, err
8990
}
9091

92+
opts.RestConfig.RateLimiter = nil
93+
opts.RestConfig.QPS = math.MaxFloat32
94+
opts.RestConfig.Burst = math.MaxInt
9195
cache, err := cache.New(opts.RestConfig, cache.Options{Scheme: scheme})
9296
if err != nil {
9397
return nil, err

0 commit comments

Comments
 (0)