From 39d1c1793355117c29bb1955cad5de09de947ad4 Mon Sep 17 00:00:00 2001
From: OZG-Cloud Team <noreply@ozg-sh.de>
Date: Thu, 1 Dec 2022 11:00:45 +0100
Subject: [PATCH] OZG-3184 OZG-3221 clean README.md; set proxy body size to
 100m

---
 src/main/helm/templates/ingress.yaml | 1 +
 src/test/helm/ingress_test.yaml      | 7 ++++++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/main/helm/templates/ingress.yaml b/src/main/helm/templates/ingress.yaml
index f5470095..17d2a188 100644
--- a/src/main/helm/templates/ingress.yaml
+++ b/src/main/helm/templates/ingress.yaml
@@ -32,6 +32,7 @@ metadata:
     {{- else }}
     cert-manager.io/cluster-issuer: letsencrypt-prod
     {{- end }}
+    nginx.ingress.kubernetes.io/proxy-body-size: 100m
   name: {{ include "app.name" . }}
   namespace: {{ include "app.namespace" . }}
 spec:
diff --git a/src/test/helm/ingress_test.yaml b/src/test/helm/ingress_test.yaml
index 348afd2e..1dff7a92 100644
--- a/src/test/helm/ingress_test.yaml
+++ b/src/test/helm/ingress_test.yaml
@@ -99,4 +99,9 @@ tests:
     asserts:
       - equal:
           path: metadata.annotations.[cert-manager.io/cluster-issuer]
-          value: letsencrypt-prod
\ No newline at end of file
+          value: letsencrypt-prod
+  - it: should set proxy body size to 100m
+    asserts:
+      - equal:
+          path: metadata.annotations.[nginx.ingress.kubernetes.io/proxy-body-size]
+          value: 100m
\ No newline at end of file
-- 
GitLab