Make k8s client rate limiter parameters configurable (#3848)

Co-authored-by: Taketoshi Fujiwara <t-b-fujiwara@mercari.com>
This commit is contained in:
Bassem Dghaidi
2024-12-13 15:37:01 +01:00
committed by GitHub
parent 488b0956fd
commit 7e04027d19
3 changed files with 20 additions and 1 deletions

View File

@@ -85,6 +85,12 @@ spec:
{{- range .Values.flags.excludeLabelPropagationPrefixes }}
- "--exclude-label-propagation-prefix={{ . }}"
{{- end }}
{{- with .Values.flags.k8sClientRateLimiterQPS }}
- "--k8s-client-rate-limiter-qps={{ . }}"
{{- end }}
{{- with .Values.flags.k8sClientRateLimiterBurst }}
- "--k8s-client-rate-limiter-burst={{ . }}"
{{- end }}
command:
- "/manager"
{{- with .Values.metrics }}

View File

@@ -135,3 +135,7 @@ flags:
## Labels that match prefix specified in the list are excluded from propagation.
# excludeLabelPropagationPrefixes:
# - "argocd.argoproj.io/instance"
## Defines the K8s client rate limiter parameters.
# k8sClientRateLimiterQPS: 20
# k8sClientRateLimiterBurst: 30