Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Set usable and safe client-side rate limit on Kubernetes client #203

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions cmd/app/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ func buildRunCommand(stopCh <-chan struct{}, opts *options.Options) *cobra.Comma
}
}

// Set a known working client-side rate limit.
restConfig.QPS = 100
restConfig.Burst = 100

// Initialise token reviewer if enabled
var tokenReviewer *tokenreview.TokenReview
if opts.App.TokenPassthrough.Enabled {
Expand Down