infra: add populate-test-data job and refresh script

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
jgrusewski
2026-03-13 11:54:22 +01:00
parent c535564e2e
commit f36f574433
2 changed files with 103 additions and 0 deletions

14
scripts/refresh-test-data.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
# Re-populate the test-data-pvc from training-data-pvc.
# Usage: ./scripts/refresh-test-data.sh
set -euo pipefail
echo "Submitting populate-test-data job..."
kubectl -n foxhunt create -f infra/k8s/training/populate-test-data-job.yaml
echo "Waiting for completion..."
kubectl -n foxhunt wait --for=condition=complete job \
-l app.kubernetes.io/name=populate-test-data \
--timeout=300s
echo "Done. Test data PVC refreshed."