From 570ef69b80310bca0422d56b6314d3d65e3cb6b8 Mon Sep 17 00:00:00 2001 From: jenkins Date: Sun, 4 Oct 2026 04:26:48 -0500 Subject: [PATCH] mailu: gate scanner readiness on its native ping response --- services/mailu/helmrelease.yaml | 10 ++++++++++ testing/tests/test_nextcloud_bootstrap.py | 1 - 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/services/mailu/helmrelease.yaml b/services/mailu/helmrelease.yaml index 119b103a..3f9f6959 100644 --- a/services/mailu/helmrelease.yaml +++ b/services/mailu/helmrelease.yaml @@ -842,6 +842,16 @@ spec: spec: containers: - name: clamav + readinessProbe: + exec: + command: + - /bin/bash + - -ec + - 'exec 3<>/dev/tcp/127.0.0.1/3310; printf "PING\n" >&3; read -r -t 3 reply <&3; test "$reply" = PONG' + initialDelaySeconds: 10 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 3 env: - name: SECRET_KEY $patch: delete diff --git a/testing/tests/test_nextcloud_bootstrap.py b/testing/tests/test_nextcloud_bootstrap.py index 42de2616..103a3735 100644 --- a/testing/tests/test_nextcloud_bootstrap.py +++ b/testing/tests/test_nextcloud_bootstrap.py @@ -1,7 +1,6 @@ """Check that a routine Nextcloud restart preserves installed app files.""" from pathlib import Path -import shlex import subprocess import yaml