alphagov / govuk-infrastructure

Terraform turnup automation for the EKS Kubernetes clusters that host GOV.UK. See https://github.com/alphagov/govuk-helm-charts for application config.
MIT License
138 stars 24 forks source link

Pin last 2.6-compatible versions of MongoDB tools. #1376

Closed sengi closed 1 month ago

sengi commented 1 month ago

mongodb-database-tools 100.9.5 links with a version of the Go mongodb client that no longer supports server 2.6.

This should see us out until we get rid of the Router database (either by having Router read from content-store or by getting rid of Router entirely).

Tested: built+pushed new image and successfully ran the cronjob with it.

k create job --from cronjob/db-backup-router-mongo sengi-test-db-backup-router-mongo
k logs job/sengi-test-db-backup-router-mongo
...
2024-07-09T11:58:38.700+0000    writing draft_router.users to archive on stdout
2024-07-09T11:58:38.701+0000    writing draft_router.data_migrations to archive on stdout
2024-07-09T11:58:38.702+0000    writing draft_router.backends to archive on stdout
2024-07-09T11:58:38.702+0000    writing draft_router.routes to archive on stdout
2024-07-09T11:58:38.704+0000    done dumping draft_router.users (1 document)
2024-07-09T11:58:38.705+0000    done dumping draft_router.backends (40 documents)
2024-07-09T11:58:38.707+0000    done dumping draft_router.data_migrations (7 documents)
2024-07-09T11:58:41.690+0000    [###############.........]  draft_router.routes  701514/1088911  (64.4%)
2024-07-09T11:58:43.446+0000    [########################]  draft_router.routes  1088912/1088911  (100.0%)
2024-07-09T11:58:43.578+0000    done dumping draft_router.routes (1088912 documents)
0:00:05 [56.4MiB/s]  287MiB
pipe s3://govuk-production-database-backups/router-mongo/2024-07-09T115838Z-draft_router.gz
done