diff --git a/api/v1alpha1/backupconfiguration_types.go b/api/v1alpha1/backupconfiguration_types.go index 7dacffd..ba47f33 100644 --- a/api/v1alpha1/backupconfiguration_types.go +++ b/api/v1alpha1/backupconfiguration_types.go @@ -36,11 +36,11 @@ type Target struct { } type Keep struct { - Last int32 `json:"last,omitempty"` - Daily int32 `json:"daily,omitempty"` - Weekly int32 `json:"weekly,omitempty"` + Last int32 `json:"last,omitempty"` + Daily int32 `json:"daily,omitempty"` + Weekly int32 `json:"weekly,omitempty"` Monthly int32 `json:"monthly,omitempty"` - Yearly int32 `json:"yearly,omitempty"` + Yearly int32 `json:"yearly,omitempty"` } // BackupConfigurationSpec defines the desired state of BackupConfiguration @@ -68,7 +68,6 @@ type BackupConfigurationStatus struct { Suspended bool `json:"suspended"` ActiveCronJob bool `json:"activeCronJob"` ActiveSidecar bool `json:"activeSidecar"` - NumberOfBackup int32 `json:"numberOfBackup"` } // BackupConfiguration is the Schema for the backupconfigurations API diff --git a/api/v1alpha1/zz_generated.deepcopy.go b/api/v1alpha1/zz_generated.deepcopy.go index 1e87d85..314fa00 100644 --- a/api/v1alpha1/zz_generated.deepcopy.go +++ b/api/v1alpha1/zz_generated.deepcopy.go @@ -118,6 +118,7 @@ func (in *BackupConfigurationSpec) DeepCopyInto(out *BackupConfigurationSpec) { *out = make([]string, len(*in)) copy(*out, *in) } + out.Keep = in.Keep } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupConfigurationSpec. @@ -306,6 +307,21 @@ func (in *FunctionList) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Keep) DeepCopyInto(out *Keep) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Keep. +func (in *Keep) DeepCopy() *Keep { + if in == nil { + return nil + } + out := new(Keep) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Param) DeepCopyInto(out *Param) { *out = *in