From 48bdf2bff3169df9e7025265fd2434af98b64504 Mon Sep 17 00:00:00 2001
From: Martin <git@mail.de>
Date: Fri, 22 Nov 2024 15:16:31 +0100
Subject: [PATCH] OZG-7121 adjust readiness/startup probes from http to https

---
 src/main/helm/templates/deployment.yaml | 4 ++--
 src/test/helm/deployment_test.yaml      | 5 ++++-
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/main/helm/templates/deployment.yaml b/src/main/helm/templates/deployment.yaml
index 107a8b2..f0f5101 100644
--- a/src/main/helm/templates/deployment.yaml
+++ b/src/main/helm/templates/deployment.yaml
@@ -83,7 +83,7 @@ spec:
           httpGet:
             path: /actuator/health/readiness
             port: 8081
-            scheme: HTTP
+            scheme: HTTPS
           periodSeconds: 10
           successThreshold: 1
           timeoutSeconds: 3
@@ -91,7 +91,7 @@ spec:
           httpGet:
             path: /actuator/health/readiness
             port: 8081
-            scheme: HTTP
+            scheme: HTTPS
           failureThreshold: 10
           initialDelaySeconds: 30
           periodSeconds: 10
diff --git a/src/test/helm/deployment_test.yaml b/src/test/helm/deployment_test.yaml
index 124a4b8..6efc4a9 100644
--- a/src/test/helm/deployment_test.yaml
+++ b/src/test/helm/deployment_test.yaml
@@ -162,7 +162,7 @@ tests:
           value: 8081
       - equal:
           path: spec.template.spec.containers[0].readinessProbe.httpGet.scheme
-          value: "HTTP"
+          value: "HTTPS"
       - equal:
           path: spec.template.spec.containers[0].readinessProbe.periodSeconds
           value: 10
@@ -178,6 +178,9 @@ tests:
       - equal:
           path: spec.template.spec.containers[0].startupProbe.httpGet.port
           value: 8081
+      - equal:
+          path: spec.template.spec.containers[0].startupProbe.httpGet.scheme
+          value: "HTTPS"
       - equal:
           path: spec.template.spec.containers[0].startupProbe.failureThreshold
           value: 10
-- 
GitLab