Skip to content

Commit

Permalink
Set MantleBackup.Spec.Expire when MantleBackupConfig creates MB
Browse files Browse the repository at this point in the history
The expiration duration can now be given in the MB spec, set it
according to MBC spec.

Signed-off-by: Toshikuni Fukaya <toshikuni-fukaya@cybozu.co.jp>
  • Loading branch information
toshipp committed Sep 18, 2024
1 parent 5f82010 commit af5aa29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/backupandrotate/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ func createMantleBackup(ctx context.Context, cli client.Client, mbc *mantlev1.Ma
Labels: map[string]string{MantleBackupConfigUID: string(mbc.GetUID())},
},
Spec: mantlev1.MantleBackupSpec{
PVC: mbc.Spec.PVC,
Expire: mbc.Spec.Expire,
PVC: mbc.Spec.PVC,
},
})
if err == nil {
Expand Down

0 comments on commit af5aa29

Please sign in to comment.