infra: add populate-test-data job and refresh script
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
14
scripts/refresh-test-data.sh
Executable file
14
scripts/refresh-test-data.sh
Executable 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."
|
||||
Reference in New Issue
Block a user