Skip to content

Commit 213d205

Browse files
authored
Add webhook timeouts (#731)
Signed-off-by: be0x74a <be0x74a@gmail.com>
1 parent 33070ca commit 213d205

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

keda/templates/webhooks/validatingconfiguration.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ webhooks:
4343
resources:
4444
- scaledobjects
4545
sideEffects: None
46-
timeoutSeconds: 10
46+
timeoutSeconds: {{ .Values.webhooks.timeoutSeconds | default 10 }}
4747
- admissionReviewVersions:
4848
- v1
4949
clientConfig:
@@ -67,7 +67,7 @@ webhooks:
6767
resources:
6868
- triggerauthentications
6969
sideEffects: None
70-
timeoutSeconds: 10
70+
timeoutSeconds: {{ .Values.webhooks.timeoutSeconds | default 10 }}
7171
- admissionReviewVersions:
7272
- v1
7373
clientConfig:
@@ -91,5 +91,5 @@ webhooks:
9191
resources:
9292
- clustertriggerauthentications
9393
sideEffects: None
94-
timeoutSeconds: 10
94+
timeoutSeconds: {{ .Values.webhooks.timeoutSeconds | default 10 }}
9595
{{- end }}

keda/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ webhooks:
183183
timeoutSeconds: 1
184184
failureThreshold: 3
185185
successThreshold: 1
186+
# -- Timeout in seconds for KEDA admission webhooks
187+
timeoutSeconds: 10
186188
# -- Enable webhook to use host network, this is required on EKS with custom CNI
187189
useHostNetwork: false
188190
# -- Name of the KEDA admission webhooks

0 commit comments

Comments
 (0)