From 2be024334a2e8ad11c245789bbea936ffe14370c Mon Sep 17 00:00:00 2001 From: Shyukri Shyukriev Date: Fri, 17 Jan 2025 10:54:04 +0200 Subject: [PATCH] Update nginx proxy-body-size annotation value Newer versions of Nginx [1.12+](https://github.com/kubernetes/ingress-nginx/releases/tag/controller-v1.12.0) has annotation security checks enabled, and the [sizeRegex](https://github.com/kubernetes/ingress-nginx/blob/0374af94ef9cbf2b50aa57ae8ae68c7dbafec290/internal/ingress/annotations/parser/validators.go#L57) does not allow `i` in the value. --- CHANGES.rst | 2 +- crate/operator/grand_central.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 3f8aec75..346dba4f 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -6,7 +6,7 @@ Unreleased ---------- * Add preStop hook to the CrateDB pods to ensure that the CrateDB process is stopped gracefully. - +* Change nginx ``proxy-body-size`` annotation value as it has stricter validations now 2.43.1 (2025-01-08) ------------------- diff --git a/crate/operator/grand_central.py b/crate/operator/grand_central.py index f01292b0..1e46d1e0 100644 --- a/crate/operator/grand_central.py +++ b/crate/operator/grand_central.py @@ -320,7 +320,7 @@ def get_grand_central_ingress( owner_references=owner_references, annotations={ "external-dns.alpha.kubernetes.io/hostname": hostname, - "nginx.ingress.kubernetes.io/proxy-body-size": "1Gi", + "nginx.ingress.kubernetes.io/proxy-body-size": "1G", "nginx.ingress.kubernetes.io/configuration-snippet": ( """ gzip on;