From 8105fb6dd502e3237dca3115b8f5490704548c3e Mon Sep 17 00:00:00 2001 From: Jean-Marc Andre Date: Sat, 9 Jan 2021 12:50:42 +0100 Subject: [PATCH] before and after backup commands --- api/v1alpha1/backupconfiguration_types.go | 9 +++++++++ 1 file changed, 9 insertions(+) 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 {