fix(ci): fix migration pod log retrieval
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user