Commit Graph

37 Commits

Author SHA1 Message Date
Jean-Marc ANDRE
3486ad2efe prepared BackupSession and RestoreSession common code 2023-03-20 22:13:44 +01:00
e025a07c9b Should be able to delete bs even if the bc has already been deleted 2023-02-27 18:21:43 +01:00
Jean-Marc ANDRE
b5a217bc3a Reworked the scheduling of the tasks. We want the init/backup/finalize tasks to be run for all the targets one after the other. 2023-02-27 00:52:01 +01:00
Jean-Marc ANDRE
06999eb553 Most of the state machine is implemented 2023-02-07 23:15:13 +01:00
Jean-Marc ANDRE
8f180f5f52 Moved BackupSession to Running. Set the first task to New. 2023-02-07 17:53:58 +01:00
Jean-Marc ANDRE
67739c4309 started backupsession controller 2023-02-05 23:19:23 +01:00
Jean-Marc ANDRE
7d9b4100fb Use controllerutil Finalizers functions 2023-02-03 22:36:17 +01:00
Jean-Marc ANDRE
6d83e59171 snapshot initial commit with some BackupConfiguration and BackupSession controllers 2023-02-03 18:23:41 +01:00
95408a3850 delete backupsession: containers have to be ran sequentially because of the restic lock on the database 2021-06-04 23:01:37 +02:00
737f0e78c2 backup init steps might need env from secrets or configmaps 2021-06-03 09:18:48 +02:00
ba5fc36712 Added 'image' tag to BackupConfiguration to allow users to specify what container image to use as a sidecar container 2021-05-12 20:34:08 +02:00
9c15bcc470 moved to kubebuilder 0.8.3 and removed unecessary loops and check if the restore job exists before creating it 2021-05-08 23:20:56 +02:00
4eb5f38795 Post restore steps work now 2021-05-02 22:34:34 +02:00
2901f9aa1a Refactored since reconciler are not reentrant 2021-04-17 16:21:26 +02:00
8303869dd2 No need for the Repository struct, a string is enough 2021-02-27 13:14:35 +01:00
0f65f114f6 Moved some part of the code to limnit the number of updates 2021-02-24 20:15:02 +01:00
145209b051 Fixed TTL error 2021-02-22 23:19:17 +01:00
809fdc659f Give time to the apiserver to update the object between 2 calls 2021-02-22 23:12:31 +01:00
03b16f5f3c Only trigger updates when necessary 2021-02-22 22:59:22 +01:00
4c0a7205aa Increased Job TTL 2021-02-22 18:10:44 +01:00
19db817b0c Added restore functionality. Needs more testing 2021-02-21 21:30:15 +01:00
349f72ca9c Renamed BackupState into SessionState so it can be reused by restore sessions 2021-02-21 21:28:24 +01:00
cd39ff0236 Added before and after backup hooks 2021-01-24 20:37:19 +01:00
315aeb603c Revert "Revert "We do cleanup when all the tasks are done and the backup is a success""
This reverts commit 09b52fc4aa.
2021-01-16 13:05:57 +01:00
09b52fc4aa Revert "We do cleanup when all the tasks are done and the backup is a success"
This reverts commit 7608c24372.
2021-01-16 12:52:23 +01:00
7608c24372 We do cleanup when all the tasks are done and the backup is a success 2021-01-09 11:26:03 +01:00
bea0537786 Don't need the date in KEEP in the end 2021-01-05 22:31:38 +01:00
02acdec8b5 postpone backupsession deletion is a backup is ongoing 2021-01-04 00:53:26 +01:00
e83e18d575 Don't run restic in parallel. It does not work 2021-01-03 14:39:56 +01:00
fcc8a65a03 Missing RBAC 2021-01-03 10:22:37 +01:00
d69077ad5c backupsession RBAC 2021-01-03 01:27:13 +01:00
c3a565724e backupsession status updated 2021-01-03 00:54:56 +01:00
3e2d2313b3 Moved BackupSession deletion to the main controller 2020-12-31 16:05:14 +01:00
3aaf127e58 Preparing for backups with more than 1 task 2020-12-28 12:08:30 +01:00
Jean-Marc ANDRE
6f95be9c73 Creates dummy backup sidecar 2020-11-30 16:55:49 +01:00
Jean-Marc ANDRE
5d83956617 Creates cron job 2020-11-27 22:44:03 +01:00
Jean-Marc ANDRE
4a4faabc9c Init import 2020-11-25 14:42:25 +01:00