Open ThomasSteinbach opened 3 years ago
@ThomasSteinbach
So 4
and 5
can be solved by the "post-backup hook"
As for 1
and 2
, based on my understanding, you may handle that via adding a Backup Item Action
plugin?
https://velero.io/docs/v1.6/custom-plugins/
@reasonerjt I think you misunderstood my requirement. Of course, step 4 and 5 can be solved by post-backup hooks and step 1 and 2 by pre-backup hooks. I already wrote that in braces behind the steps objectives.
What my requirement is about, is to run those steps in order. That is currently not possible, because hooks for different resources are running asychronous.
Or in other words: It would be nice having global dependency definitions for hooks. Such that you can say define hook X
just after hooks with labels d
, e
and f
have finished.
Describe the problem/challenge you have
A backup could require a lifecycle of actions to be done. For instance backing up Nextcloud would require following actions in order:
However currently Velero hooks run rather random. Every pod backup has its own pre-/post- hook but because the pod backups run in parallel you cannot ensure that - regarding the example above - the database dump is synchronized with the maintainance mode-
Describe the solution you'd like
It would be nice (and required) for hooks having a global sort order in which they were executed. Hooks should be executed in order and only after a previous hook finishes.
Environment:
velero version
): 1.6.0kubectl version
): 1.19/etc/os-release
): debianVote on this issue!
This is an invitation to the Velero community to vote on issues, you can see the project's top voted issues listed here.
Use the "reaction smiley face" up to the right of this comment to vote.