uselagoon / build-deploy-tool

Tool to generate build resources
4 stars 7 forks source link

Environments with nothing to backup still create schedules #270

Closed shreddedbacon closed 7 months ago

shreddedbacon commented 10 months ago

When an environment is deployed in a completely stateless way (no database, no persistent volumes) the schedule for backups is still created.

This can lead to unexpected issues when the purge and check jobs run for these environments, they will fail if there is no associated restic repository, as this is only created when the first backups are performed.

The build-deploy-tool should check if there are any components that required backups, and if so, only then create the schedule.