From 0936ab658521230bc45a8727e5779302520d98ef Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Thu, 14 Mar 2024 12:53:55 +0100
Subject: [PATCH] increase startup probe time

---
 src/main/helm/templates/deployment.yaml       |  4 +--
 ..._test.yaml => deployment_probes_test.yaml} | 31 +++++++++++++++++++
 2 files changed, 33 insertions(+), 2 deletions(-)
 rename src/test/helm/{deployment_liveness_probe_test.yaml => deployment_probes_test.yaml} (68%)

diff --git a/src/main/helm/templates/deployment.yaml b/src/main/helm/templates/deployment.yaml
index c99926c4..2e56bc55 100644
--- a/src/main/helm/templates/deployment.yaml
+++ b/src/main/helm/templates/deployment.yaml
@@ -152,8 +152,8 @@ spec:
             path: /q/health/started
             port: 8080
             scheme: HTTP
-          initialDelaySeconds: 15
-          periodSeconds: 5
+          initialDelaySeconds: 30
+          periodSeconds: 10
           successThreshold: 1
           timeoutSeconds: 5
         {{- if .Values.enableLivenessProbe }}
diff --git a/src/test/helm/deployment_liveness_probe_test.yaml b/src/test/helm/deployment_probes_test.yaml
similarity index 68%
rename from src/test/helm/deployment_liveness_probe_test.yaml
rename to src/test/helm/deployment_probes_test.yaml
index 195c0cc7..65960acf 100644
--- a/src/test/helm/deployment_liveness_probe_test.yaml
+++ b/src/test/helm/deployment_probes_test.yaml
@@ -60,3 +60,34 @@ tests:
             periodSeconds: 5
             successThreshold: 1
             timeoutSeconds: 5
+
+  - it: should have readiness probe
+    template: deployment.yaml
+    asserts:
+      - isSubset:
+          path: spec.template.spec.containers[0].readinessProbe
+          content:
+            failureThreshold: 3
+            httpGet:
+              path: /q/health/ready
+              port: 8080
+              scheme: HTTP
+            periodSeconds: 10
+            successThreshold: 1
+            timeoutSeconds: 3
+
+  - it: should have startup probe
+    template: deployment.yaml
+    asserts:
+      - isSubset:
+          path: spec.template.spec.containers[0].startupProbe
+          content:
+            failureThreshold: 10
+            httpGet:
+              path: /q/health/started
+              port: 8080
+              scheme: HTTP
+            initialDelaySeconds: 30
+            periodSeconds: 10
+            successThreshold: 1
+            timeoutSeconds: 5
\ No newline at end of file
-- 
GitLab