Commit Graph

77 Commits

Author SHA1 Message Date
Jean-Marc ANDRE
29f7e6d4e0 cleanup 2023-04-28 15:02:26 +02:00
Jean-Marc ANDRE
92ea7f3872 label has been added to the target pod to allow pod anti affinity 2023-04-27 15:42:26 +02:00
Jean-Marc ANDRE
c8c53954d7 API optional fields 2023-04-20 12:01:33 +02:00
Jean-Marc ANDRE
1b31b497a0 GetVolumeMounts was not working 2023-04-20 09:21:16 +02:00
Jean-Marc ANDRE
8975f77e58 Need WaitingForJob special state for SnapshotKind 2023-04-14 20:48:08 +02:00
Jean-Marc ANDRE
d8b685c1ab First volume snapshot created 2023-04-11 10:47:33 +02:00
Jean-Marc ANDRE
e73ef7c3f2 reworked Steps 2023-03-25 18:23:39 +01:00
Jean-Marc ANDRE
b2d80d66ae Restore OnlineKind 2023-03-23 22:19:13 +01:00
7e007bfd44 Prepared RestoreSession for OnlineKind with initContainer 2023-03-21 17:57:14 +01:00
Jean-Marc ANDRE
3486ad2efe prepared BackupSession and RestoreSession common code 2023-03-20 22:13:44 +01:00
Jean-Marc ANDRE
f0c17e061f The BackupSession controller in the sidecar should get the latest informtation about the repository everytime it reconciles because it might change 2023-03-06 23:04:39 +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
da8b224cf0 need a Job to run 2023-02-26 00:43:50 +01:00
Jean-Marc ANDRE
3790f30e29 Handle sidecar creation for the Job backup type with shared volume 2023-02-24 21:49:02 +01:00
Jean-Marc ANDRE
6b0add3fdf fixed conflict 2023-02-23 22:44:46 +01:00
5090b5fb1a added local repository for restic 2023-02-22 14:33:44 +01:00
Jean-Marc ANDRE
cfea083594 sharedprocess and local restic repostory 2023-02-21 01:12:47 +01:00
Jean-Marc ANDRE
1361f62045 A sidecar ENV keeps the paths to backup. That will do for now but the BackupSession controller in the sidecar should do the job of computing the paths to backup every time it reconciles. In case the paths have changed 2023-02-18 22:46:15 +01:00
Jean-Marc ANDRE
c89a522262 added BackupConfiguration.Status.Targets struct to hold the paths to be backed up in the sidecar container 2023-02-16 21:40:22 +01:00
e80871346e defined constants for restic ENV variables 2023-02-16 11:24:35 +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
888284017e Set backupsession state to NEW 2023-02-07 17:12:43 +01:00
Jean-Marc ANDRE
e22c29f783 Cleanup 2023-02-07 17:11:16 +01:00
Jean-Marc ANDRE
6d83e59171 snapshot initial commit with some BackupConfiguration and BackupSession controllers 2023-02-03 18:23:41 +01:00
Jean-Marc ANDRE
0510fc43d4 kubectl displays suspended and schedule attribute of BackupConfiguration 2021-11-30 23:36:36 +01:00
a904dd21d4 Moved to latest kubebuilder 2021-07-17 20:25:13 +02:00
1b09212f6d tag what container to backup and to run the steps against 2021-06-03 17:17:34 +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
4eb5f38795 Post restore steps work now 2021-05-02 22:34:34 +02:00
191207e901 Fixed printcolumn 2021-04-27 21:43:24 +02:00
a4eda1db42 Restore annotation 2021-04-25 18:09:25 +02:00
2901f9aa1a Refactored since reconciler are not reentrant 2021-04-17 16:21:26 +02:00
f8707d55e5 set default value to suspend field 2021-03-04 20:44:56 +01:00
589f8480ad code cleanup 2021-02-28 20:13:17 +01:00
8303869dd2 No need for the Repository struct, a string is enough 2021-02-27 13:14:35 +01:00
49a489cd97 Added RestoreSession related constants 2021-02-21 21:30:19 +01:00
38d6877962 init restoresession 2021-02-21 21:28:24 +01:00
ef4429af2a finish SessionState 2021-02-21 21:28:24 +01:00
349f72ca9c Renamed BackupState into SessionState so it can be reused by restore sessions 2021-02-21 21:28:24 +01:00
d5b9ffd8a4 BackupConfiguration webhook 2021-02-21 21:24:27 +01:00
ce16a92081 Added Suspend to BackupConfiguration API 2021-02-21 21:24:02 +01:00
cd39ff0236 Added before and after backup hooks 2021-01-24 20:37:19 +01:00
771b5a5c96 Revert "before and after backup commands"
This reverts commit 8105fb6dd5.
2021-01-16 13:06:01 +01:00
8105fb6dd5 before and after backup commands 2021-01-09 12:50:42 +01:00
233856beb0 Added short names for the backup resources 2021-01-05 23:08:34 +01:00
bdd75961e7 Added printcolumn tags for kubectl get backupsessions 2021-01-04 00:51:24 +01:00
1424178873 Added field validation tags 2021-01-04 00:50:26 +01:00
c3a565724e backupsession status updated 2021-01-03 00:54:56 +01:00