15 lines
449 B
Bash
Executable File
15 lines
449 B
Bash
Executable File
#!/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."
|