mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
DB Jobs for dev-lti
These manifests are intended for EKS + Argo CD deployment flow.
Files
migrate-dev-lti-presync.yaml: Argo CDPreSyncmigration Job.seed-dev-lti-manual.yaml: manual seed Job.fresh-dev-lti-manual.yaml: manual reset + migrate Job (guarded withALLOW_DB_RESET).
Important
- Update the image tag in all manifests to the same tag deployed by Argo for each release.
- Jobs currently read environment variables from secret
lti-env-dev. - Required DB env vars:
DB_HOST,DB_PORT,DB_USER,DB_PASSWORD,DB_NAME, optionalDB_SSLMODE.
Manual run
Seed:
kubectl delete job -n dev-lti lti-db-seed-manual --ignore-not-found
kubectl apply -f k8s/jobs/seed-dev-lti-manual.yaml
kubectl logs -n dev-lti job/lti-db-seed-manual -f
Fresh/reset (dev only):
kubectl delete job -n dev-lti lti-db-fresh-manual --ignore-not-found
sed 's/value: "NO"/value: "YES"/' k8s/jobs/fresh-dev-lti-manual.yaml | kubectl apply -f -
kubectl logs -n dev-lti job/lti-db-fresh-manual -f
Argo CD note
For migrate-dev-lti-presync.yaml, keep annotation:
argocd.argoproj.io/hook: PreSyncargocd.argoproj.io/hook-delete-policy: BeforeHookCreation,HookSucceeded
so migration runs before workload sync.