before and after backup commands

This commit is contained in:
jandre 2021-01-09 12:50:42 +01:00
parent 7608c24372
commit 8105fb6dd5

View File

@ -48,6 +48,15 @@ type Target struct {
// +optional
// +kubebuilder:validation:MinItems=1
Steps []Step `json:"steps,omitempty"`
// +optional
BeforeBackup []Hook `json:"beforeBackup,omitempty"`
// +optional
AfterBackup []Hook `json:"afterBackup,omitempty"`
}
type Hook struct {
Cmd string `json:"cmd"`
Args []string `json:"args"`
}
type Keep struct {