Skip to content

Commit 31a9931

Browse files
committed
add DescribeTaskStatus to apiRateLimit config
Signed-off-by: roc <[email protected]>
1 parent cedce8b commit 31a9931

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

charts/tke-extend-network-controller/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ spec:
9090
- name: API_RATELIMIT_BATCH_DEREGISTER_TARGETS
9191
value: "{{ . }}"
9292
{{- end }}
93+
{{- with .Values.apiRateLimit.DescribeTaskStatus }}
94+
- name: API_RATELIMIT_DESCRIBE_TASK_STATUS
95+
value: "{{ . }}"
96+
{{- end }}
9397
envFrom:
9498
- secretRef:
9599
name: {{ include "tke-extend-network-controller.fullname" . }}-env

charts/tke-extend-network-controller/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ concurrency:
3838
# BatchRegisterTargets: 20
3939
# DescribeTargets: 20
4040
# BatchDeregisterTargets: 20
41+
# DescribeTaskStatus: 20
4142

4243
# -- Logging otpions of the controller
4344
log:

pkg/clb/rate-limit.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ var envMap = map[string]string{
1717
"API_RATELIMIT_BATCH_REGISTER_TARGETS": "BatchRegisterTargets",
1818
"API_RATELIMIT_DESCRIBE_TARGETS": "DescribeTargets",
1919
"API_RATELIMIT_BATCH_DEREGISTER_TARGETS": "BatchDeregisterTargets",
20+
"API_RATELIMIT_DESCRIBE_TASK_STATUS": "DescribeTaskStatus",
2021
}
2122

2223
func init() {

0 commit comments

Comments
 (0)