'How do we run pre restore hooks in velero?

I am trying to run some commands before the any pods come up while doing velero restore. I referred the velero documentation Velero Restore Hooks, the documentation is pointing either to initContainer way or post hooks.

Is there a way to specify pre hooks for restore as well for velero.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source