mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 01:06:27 +00:00
Merge pull request #85957 from mikedanese/authzcache
increase LRU cache size 8x for authorization webhook
This commit is contained in:
commit
bd4c9a2263
@ -95,7 +95,7 @@ func New(kubeConfigFile string, version string, authorizedTTL, unauthorizedTTL t
|
|||||||
func newWithBackoff(subjectAccessReview subjectAccessReviewer, authorizedTTL, unauthorizedTTL, initialBackoff time.Duration) (*WebhookAuthorizer, error) {
|
func newWithBackoff(subjectAccessReview subjectAccessReviewer, authorizedTTL, unauthorizedTTL, initialBackoff time.Duration) (*WebhookAuthorizer, error) {
|
||||||
return &WebhookAuthorizer{
|
return &WebhookAuthorizer{
|
||||||
subjectAccessReview: subjectAccessReview,
|
subjectAccessReview: subjectAccessReview,
|
||||||
responseCache: cache.NewLRUExpireCache(1024),
|
responseCache: cache.NewLRUExpireCache(8192),
|
||||||
authorizedTTL: authorizedTTL,
|
authorizedTTL: authorizedTTL,
|
||||||
unauthorizedTTL: unauthorizedTTL,
|
unauthorizedTTL: unauthorizedTTL,
|
||||||
initialBackoff: initialBackoff,
|
initialBackoff: initialBackoff,
|
||||||
|
Loading…
Reference in New Issue
Block a user