Skip to content

Commit bf460eb

Browse files
Chore: Add admissionWebhookTimeout parameter for webhook configurations (#220)
* Chore: Add admissionWebhookTimeout parameter for webhook configurations Signed-off-by: Amit Singh <[email protected]> * Chore: Remove default timeoutSeconds value from mutatingWebhookConfiguration Signed-off-by: Chaitanya Reddy Onteddu <[email protected]> * Chore: Remove default timeoutSeconds value from validatingWebhookConfiguration Signed-off-by: Chaitanya Reddy Onteddu <[email protected]> --------- Signed-off-by: Amit Singh <[email protected]> Signed-off-by: Chaitanya Reddy Onteddu <[email protected]> Co-authored-by: Vaibhav Agrawal <[email protected]>
1 parent 53a9d0d commit bf460eb

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

charts/vela-workflow/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ helm install --create-namespace -n vela-system workflow kubevela/vela-workflow -
9595
| `logDebug` | Enable debug logs for development purpose | `false` |
9696
| `logFilePath` | If non-empty, write log files in this path | `""` |
9797
| `logFileMaxSize` | Defines the maximum size a log file can grow to. Unit is megabytes. If the value is 0, the maximum file size is unlimited. | `1024` |
98+
| `admissionWebhookTimeout` | Timeout seconds for admission webhooks | `10` |
9899
| `kubeClient.qps` | The qps for reconcile clients, default is 50 | `500` |
99100
| `kubeClient.burst` | The burst for reconcile clients, default is 100 | `1000` |
100101
| `kubeClient.userAgent` | The user agent of the client, default is vela-workflow | `vela-workflow` |

charts/vela-workflow/templates/admission-webhooks/mutatingWebhookConfiguration.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ webhooks:
2121
failurePolicy: Fail
2222
{{- end }}
2323
name: mutating.core.oam.dev.v1alpha1.workflowruns
24+
timeoutSeconds: {{ .Values.admissionWebhookTimeout }}
2425
sideEffects: None
2526
rules:
2627
- apiGroups:
@@ -36,6 +37,5 @@ webhooks:
3637
admissionReviewVersions:
3738
- v1beta1
3839
- v1
39-
timeoutSeconds: 5
4040

4141
{{- end -}}

charts/vela-workflow/templates/admission-webhooks/validatingWebhookConfiguration.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ webhooks:
2121
failurePolicy: {{ .Values.admissionWebhooks.failurePolicy }}
2222
{{- end }}
2323
name: validating.core.oam.dev.v1alpha2.applicationconfigurations
24+
timeoutSeconds: {{ .Values.admissionWebhookTimeout }}
2425
sideEffects: None
2526
rules:
2627
- apiGroups:
@@ -36,5 +37,4 @@ webhooks:
3637
admissionReviewVersions:
3738
- v1beta1
3839
- v1
39-
timeoutSeconds: 5
4040
{{- end -}}

charts/vela-workflow/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ logFilePath: ""
150150
## @param logFileMaxSize Defines the maximum size a log file can grow to. Unit is megabytes. If the value is 0, the maximum file size is unlimited.
151151
logFileMaxSize: 1024
152152

153+
## @param admissionWebhookTimeout Timeout seconds for admission webhooks
154+
admissionWebhookTimeout: 10
155+
153156
## @skip admissionWebhooks
154157
admissionWebhooks:
155158
enabled: true

0 commit comments

Comments
 (0)