diff --git a/api/v1alpha1/backupconfiguration_types.go b/api/v1alpha1/backupconfiguration_types.go index fdb8ca1..f647562 100644 --- a/api/v1alpha1/backupconfiguration_types.go +++ b/api/v1alpha1/backupconfiguration_types.go @@ -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 {