Skip to content

Conversation

@yodem
Copy link
Collaborator

@yodem yodem commented Jan 12, 2026

Pre MDL PR for pre-mdl cauldron

yodem added 3 commits January 12, 2026 13:19
Add two new cronjob templates that enable cauldrons and other deployments to sync production data:

- sync-mongo-production-data.yaml: Downloads latest MongoDB private dump from GCS and restores to environment
- sync-postgres-production-data.yaml: Downloads latest PostgreSQL backup from GCS and restores to environment

Features:
- Runs weekly on Sundays at 2 AM
- Uses init containers for backup download
- Requires restore.enabled: true as safety check
- Configurable via cronJobs.syncMongoProductionData.enabled and cronJobs.syncPostgresProductionData.enabled
- Supports custom postgres database names via postgres.db setting

This enables environments like sefariastaging to keep their data in sync with production automatically.
Add postgres configuration block that allows cauldrons and deployments to specify:
- Custom database name (defaults to 'sefaria_auth')
- PostgreSQL host (defaults to DATABASES_HOST from secret)
- Restore and sync flags

This configuration is required for the sync-postgres-production-data cronjob to work properly.
@yodem yodem changed the title feat(chart): trigger deploy images Pre MDL Jan 14, 2026
@mergify
Copy link

mergify bot commented Jan 15, 2026

🧪 CI Insights

Here's what we observed from your CI run for 232e61d.

🟢 All jobs passed!

But CI Insights is watching 👀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant