From 666712e1c8fab8f08ad3b17e00e99e5f85915c36 Mon Sep 17 00:00:00 2001 From: Siegfried Weber Date: Tue, 17 Nov 2026 17:03:49 +0100 Subject: [PATCH] test: Let the Garage nginx sidecar run as an arbitrary UID --- tests/templates/kuttl/smoke/02_garage.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/templates/kuttl/smoke/02_garage.yaml b/tests/templates/kuttl/smoke/02_garage.yaml index d2f3877c..3d824983 100644 --- a/tests/templates/kuttl/smoke/02_garage.yaml +++ b/tests/templates/kuttl/smoke/02_garage.yaml @@ -31,6 +31,10 @@ data: # Garage terminates no TLS on any endpoint, so nginx does it and forwards to # Garage on loopback. Mounted over /etc/nginx/nginx.conf, hence the full file. nginx.conf: | + # OpenShift runs the container as an arbitrary UID, which may not write to + # /run. This file replaces the one in the image, so it must be set here. + pid /tmp/nginx.pid; + events {} http { server { @@ -137,6 +141,11 @@ spec: subPath: nginx.conf - name: tls mountPath: /stackable/tls + # nginx creates its temp dirs here on startup even though the proxy + # buffering above is off, and the image owns /var/cache/nginx by the + # image UID, not the arbitrary one OpenShift assigns. + - name: nginx-cache + mountPath: /var/cache/nginx resources: requests: cpu: 100m @@ -166,6 +175,8 @@ spec: name: garage - name: data emptyDir: {} + - name: nginx-cache + emptyDir: {} - name: tls ephemeral: volumeClaimTemplate: