fix(ci): fix migration pod log retrieval

This commit is contained in:
2026-04-08 05:13:14 +00:00
parent 9a1a641e97
commit f34178978e
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -319,7 +319,7 @@ jobs:
# Print logs regardless of outcome so failures are diagnosable # Print logs regardless of outcome so failures are diagnosable
echo "--- Migration pod logs ---" echo "--- Migration pod logs ---"
kubectl logs -n optima -l app=prisma-migrate --tail=200 || true kubectl logs -n optima "$JOB" --tail=200 || true
# Determine outcome by checking the job's actual conditions # Determine outcome by checking the job's actual conditions
if kubectl get -n optima "$JOB" -o jsonpath='{.status.conditions[?(@.type=="Complete")].status}' | grep -q "True"; then if kubectl get -n optima "$JOB" -o jsonpath='{.status.conditions[?(@.type=="Complete")].status}' | grep -q "True"; then
+3
View File
@@ -10,6 +10,9 @@ spec:
ttlSecondsAfterFinished: 86400 ttlSecondsAfterFinished: 86400
activeDeadlineSeconds: 180 activeDeadlineSeconds: 180
template: template:
metadata:
labels:
app: prisma-migrate
spec: spec:
containers: containers:
- name: migrate - name: migrate