argocd: add PostSync smoke test hooks for polymarket-bot, n8n, portfolio
This commit is contained in:
@@ -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 ==="
|
||||
Reference in New Issue
Block a user