Skip to content

Commit

Permalink
Fixed missing export field
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-karpukhin committed Mar 14, 2023
1 parent 95fbdd5 commit 5263c8a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/controller/atlasdeployment/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,11 @@ func (r *AtlasDeploymentReconciler) updateBackupScheduleAndPolicy(
CopySettings: make([]mongodbatlas.CopySetting, 0, len(bSchedule.Spec.CopySettings)),
}

if bSchedule.Spec.Export != nil {
apiScheduleReq.Export.ExportBucketID = bSchedule.Spec.Export.ExportBucketID
apiScheduleReq.Export.FrequencyType = bSchedule.Spec.Export.FrequencyType
}

for _, copySetting := range bSchedule.Spec.CopySettings {
apiScheduleReq.CopySettings = append(
apiScheduleReq.CopySettings,
Expand Down

0 comments on commit 5263c8a

Please sign in to comment.