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
+29
View File
@@ -0,0 +1,29 @@
apiVersion: batch/v1
kind: Job
metadata:
name: postsync-smoke-test
namespace: portfolio
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://portfolio.portfolio.svc.cluster.local:80"
echo "--- [1/1] GET / (HTTP 200) ---"
curl -sf --max-time 15 --retry 3 --retry-delay 5 --retry-all-errors \
"$BASE/" > /dev/null
echo "OK"
echo "=== portfolio: all smoke tests passed ==="