argoproj / gitops-engine

Democratizing GitOps
https://pkg.go.dev/github.com/argoproj/gitops-engine?tab=subdirectories
Apache License 2.0
1.7k stars 260 forks source link

fix: Set QPS and burst rate for resource ops client #395

Closed jannfis closed 2 years ago

jannfis commented 2 years ago

This allows to set Kubernetes client QPS and burst rates for the resource ops client, according to the configuration of the client.

Needs a very small change in Argo CD as well, which will be submitted separately.

Supersedes #349

Signed-off-by: jannfis jann@mistrust.net

sonarcloud[bot] commented 2 years ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
4.0% 4.0% Duplication

codecov[bot] commented 2 years ago

Codecov Report

Merging #395 (040d412) into master (723667d) will decrease coverage by 0.03%. The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master     #395      +/-   ##
==========================================
- Coverage   54.27%   54.23%   -0.04%     
==========================================
  Files          41       41              
  Lines        3053     3055       +2     
==========================================
  Hits         1657     1657              
- Misses       1233     1235       +2     
  Partials      163      163              
Impacted Files Coverage Δ
pkg/utils/kube/ctl.go 5.63% <0.00%> (ø)
pkg/utils/kube/resource_ops.go 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 723667d...040d412. Read the comment docs.

jannfis commented 2 years ago

Cherry-picked into release-0.6: https://github.com/argoproj/gitops-engine/commit/1a7a69fa002a1f3ad3b9935f4281c7cb38907c9e