before and after backup commands
This commit is contained in:
parent
7608c24372
commit
8105fb6dd5
@ -48,6 +48,15 @@ type Target struct {
|
|||||||
// +optional
|
// +optional
|
||||||
// +kubebuilder:validation:MinItems=1
|
// +kubebuilder:validation:MinItems=1
|
||||||
Steps []Step `json:"steps,omitempty"`
|
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 {
|
type Keep struct {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user