Commit Graph

199 Commits

Author SHA1 Message Date
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
b330e2cfdd documentation 2023-02-22 14:54:26 +01:00
5090b5fb1a added local repository for restic 2023-02-22 14:33:44 +01:00
Jean-Marc ANDRE
0c2d2d8f54 Remove the RBAC once the last sidecar from the namespace is removed 2023-02-21 20:48:59 +01:00
Jean-Marc ANDRE
cfea083594 sharedprocess and local restic repostory 2023-02-21 01:12:47 +01:00
Jean-Marc ANDRE
9f91876dd2 updated the tests 2023-02-21 01:12:43 +01:00
6c2fa76111 back to the latest formolcli image 2023-02-20 09:42:19 +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
55f3dc8dff The sidecar configuration is different depending on the backup type. Need more AddSidecar functions 2023-02-16 11:25:52 +01:00
e80871346e defined constants for restic ENV variables 2023-02-16 11:24:35 +01:00
6c4d1a749c Added some RBAC to allow the sidecar container to get BackupSession informations 2023-02-08 17:54:24 +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
aba4ae4620 Added sidecar volume mounts 2023-02-07 17:12:17 +01:00
Jean-Marc ANDRE
e22c29f783 Cleanup 2023-02-07 17:11:16 +01:00
Jean-Marc ANDRE
67739c4309 started backupsession controller 2023-02-05 23:19:23 +01:00
Jean-Marc ANDRE
9ed45d8528 Reorganized files one more time 2023-02-04 18:11:30 +01:00
Jean-Marc ANDRE
854f290a02 removed pkg/utils no longer needed 2023-02-04 17:27:45 +01:00
Jean-Marc ANDRE
517a6c7324 Sidecar tests 2023-02-04 17:25:00 +01:00
Jean-Marc ANDRE
c75de6e609 should test []EnvVar length 2023-02-04 17:24:42 +01:00
Jean-Marc ANDRE
e69b25bae0 removed *~ 2023-02-04 11:19:37 +01:00
Jean-Marc ANDRE
912f3bb06a Removed ~ files 2023-02-03 22:37:00 +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
Jean-Marc ANDRE
d018b81655 ignore testbin/ 2022-03-26 12:04:36 +01:00
Jean-Marc ANDRE
0b363fd2b6 mod deps 2022-03-26 12:04:05 +01:00
Jean-Marc ANDRE
0510fc43d4 kubectl displays suspended and schedule attribute of BackupConfiguration 2021-11-30 23:36:36 +01:00
5ed396ffce Try to gather metrics using prometheus 2021-07-17 20:26:33 +02:00
97e3df7343 build for arm64 because it runs faster 2021-07-17 20:26:05 +02:00
a904dd21d4 Moved to latest kubebuilder 2021-07-17 20:25:13 +02:00
b6c7add468 More logs 2021-06-20 21:01:45 +02:00
7a8df55542 Automate docker build and push 2021-06-20 21:00:22 +02:00
97ac4d5cc4 Merge pull request 'steps' (#8) from steps into master
Reviewed-on: http://git.desmojim.fr/jandre/formol/pulls/8
2021-06-04 21:25:22 +00: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
1b09212f6d tag what container to backup and to run the steps against 2021-06-03 17:17:34 +02:00
3a7dd1d2b2 Updated the test env 2021-06-03 09:19:12 +02:00
737f0e78c2 backup init steps might need env from secrets or configmaps 2021-06-03 09:18:48 +02:00
e61c7e4c4e tagged the container with 0.2 2021-06-03 09:15:47 +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
efc6114586 updated restore tests 2021-05-08 23:21:11 +02:00
7ac99063c9 use defer to update deployment 2021-05-08 23:21:11 +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
477022347d Restore session test 2021-05-02 22:35:00 +02:00
4eb5f38795 Post restore steps work now 2021-05-02 22:34:34 +02:00
db8e6fdf61 Useful command 2021-04-27 22:10:40 +02:00
3a84dac881 we want to track config/default 2021-04-27 22:00:49 +02:00