From 08612698808eb3d9d8072de8004d49c37a8482bc Mon Sep 17 00:00:00 2001 From: Arik Hadas Date: Thu, 28 Sep 2023 12:52:15 +0300 Subject: [PATCH] increase timeout of validation webhooks to 30 sec 10 seconds are usually enough but in some cases, it takes few seconds to instantiate a client for interacting with the cluster and then this 10 seconds timeout is reached. Therefore, aligning the timeout of the validation webhooks with that of mutating webhooks. Signed-off-by: Arik Hadas --- .../templates/api/validatingwebhookconfiguration-plans.yml.j2 | 1 + .../api/validatingwebhookconfiguration-providers.yml.j2 | 1 + .../templates/api/validatingwebhookconfiguration-secrets.yml.j2 | 1 + 3 files changed, 3 insertions(+) diff --git a/operator/roles/forkliftcontroller/templates/api/validatingwebhookconfiguration-plans.yml.j2 b/operator/roles/forkliftcontroller/templates/api/validatingwebhookconfiguration-plans.yml.j2 index 569493681..441fa9f84 100644 --- a/operator/roles/forkliftcontroller/templates/api/validatingwebhookconfiguration-plans.yml.j2 +++ b/operator/roles/forkliftcontroller/templates/api/validatingwebhookconfiguration-plans.yml.j2 @@ -35,3 +35,4 @@ webhooks: - CREATE - UPDATE sideEffects: None + timeoutSeconds: 30 diff --git a/operator/roles/forkliftcontroller/templates/api/validatingwebhookconfiguration-providers.yml.j2 b/operator/roles/forkliftcontroller/templates/api/validatingwebhookconfiguration-providers.yml.j2 index 351e0da49..95f6bf65f 100644 --- a/operator/roles/forkliftcontroller/templates/api/validatingwebhookconfiguration-providers.yml.j2 +++ b/operator/roles/forkliftcontroller/templates/api/validatingwebhookconfiguration-providers.yml.j2 @@ -35,3 +35,4 @@ webhooks: - CREATE - UPDATE sideEffects: None + timeoutSeconds: 30 diff --git a/operator/roles/forkliftcontroller/templates/api/validatingwebhookconfiguration-secrets.yml.j2 b/operator/roles/forkliftcontroller/templates/api/validatingwebhookconfiguration-secrets.yml.j2 index 8f24080b0..cc8b1b137 100644 --- a/operator/roles/forkliftcontroller/templates/api/validatingwebhookconfiguration-secrets.yml.j2 +++ b/operator/roles/forkliftcontroller/templates/api/validatingwebhookconfiguration-secrets.yml.j2 @@ -39,3 +39,4 @@ webhooks: - secrets scope: Namespaced sideEffects: None + timeoutSeconds: 30