ci: clear proxy env in minio-bucket-init, capture seed pod logs on failure
This commit is contained in:
@@ -333,7 +333,6 @@ log "Seeding sandbox database ..."
|
||||
if ! kubectl run seed-sandbox \
|
||||
--image="$SEED_IMAGE" \
|
||||
--restart=Never \
|
||||
--rm \
|
||||
--attach \
|
||||
--pod-running-timeout=5m \
|
||||
--namespace="$NAMESPACE" \
|
||||
@@ -355,7 +354,9 @@ if ! kubectl run seed-sandbox \
|
||||
--env="MINIO_SECRET_KEY=minioadmin" \
|
||||
--command -- python -m tests.integration.seed_sandbox; then
|
||||
log "FATAL: Database seed failed"
|
||||
debug_pod_failure "seed-sandbox" "run=seed-sandbox"
|
||||
log "Seed pod logs:"
|
||||
kubectl logs seed-sandbox -n "$NAMESPACE" --tail=50 2>&1 || true
|
||||
kubectl delete pod seed-sandbox -n "$NAMESPACE" --ignore-not-found > /dev/null 2>&1 || true
|
||||
stage_fail "seed_data"
|
||||
PIPELINE_EXIT_CODE=2
|
||||
exit 2
|
||||
|
||||
Reference in New Issue
Block a user