Skip to content

Commit fe6a2fd

Browse files
authored
fix: manually set client-side ratelimiting to previous values (#754)
<!-- markdownlint-disable MD041 --> #### What this PR does / why we need it Fixes open-component-model/ocm-project#684 #### Which issue(s) this PR is related to <!-- Usage: `Related to #<issue number>`, or `Related to (paste link of issue)`. --> Signed-off-by: Gergely Brautigam <[email protected]>
1 parent 27c2561 commit fe6a2fd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

main.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@ func main() {
117117
glog.SetLevel(glog.WARNING, "yq-lib")
118118

119119
restConfig := ctrl.GetConfigOrDie()
120+
// Stop enabling client-side ratelimiter by default (https://github.com/kubernetes-sigs/controller-runtime/pull/3119)
121+
// Previous behavior can be preserved by setting QPS 20 and Burst 30 on the rest.Config
122+
restConfig.Burst = 30
123+
restConfig.QPS = 20
124+
120125
mgr, err := ctrl.NewManager(restConfig, ctrl.Options{
121126
Scheme: scheme,
122127
Metrics: metricsserver.Options{

0 commit comments

Comments
 (0)