pulp-operator
pulp-operator copied to clipboard
[RFE] Create a cronjob to run backups
Is your feature request related to a problem? Please describe.
Kubernetes has the cronjob resource that runs a job periodically on a given schedule. We could use it to schedule Pulp backups.
Describe the solution you'd like
The operator could create a k8s cronjob resource that would create a PulpBackup instance to periodically run a backup and delete it as soon as the backup finishes.
Additional context
We would probably need to also modify the backup controller implementation to keep different "versions" of files based on the data they were copied. Which, maybe, would also need to create another cronjob resource to rotate old backups!?