argocd: add PostSync smoke test hooks for polymarket-bot, n8n, portfolio

This commit is contained in:
2026-04-23 09:14:04 +00:00
parent 6fdad3b667
commit d3c03d5462
3 changed files with 104 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
apiVersion: batch/v1
kind: Job
metadata:
name: postsync-smoke-test
namespace: n8n
annotations:
argocd.argoproj.io/hook: PostSync
argocd.argoproj.io/hook-delete-policy: HookSucceeded
spec:
ttlSecondsAfterFinished: 600
backoffLimit: 0
template:
spec:
restartPolicy: Never
containers:
- name: smoke-test
image: curlimages/curl:latest
command: ["/bin/sh", "-c"]
args:
- |
set -e
BASE="http://n8n.n8n.svc.cluster.local:5678"
echo "--- [1/1] GET /healthz ---"
HEALTH=$(curl -sf --max-time 15 --retry 3 --retry-delay 5 --retry-all-errors \
"$BASE/healthz")
echo "$HEALTH"
echo "$HEALTH" | grep -qF '"status":"ok"' \
|| { echo "FAIL: n8n health check did not return status ok"; exit 1; }
echo "OK"
echo "=== n8n: all smoke tests passed ==="