Skip to content

Commit bd5f40c

Browse files
Update pkg/controller/perconaservermongodbbackup/psmdb_backup_controller.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 43b4e1d commit bd5f40c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkg/controller/perconaservermongodbbackup/psmdb_backup_controller.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,9 +451,11 @@ func (r *ReconcilePerconaServerMongoDBBackup) getPBMStorage(ctx context.Context,
451451
PartSize: cr.Status.Minio.PartSize,
452452
Secure: cr.Status.Minio.Secure,
453453
ForcePathStyle: cr.Status.Minio.ForcePathStyle,
454-
Retryer: &mio.Retryer{
454+
}
455+
if cr.Status.Minio.Retryer != nil {
456+
minioConf.Retryer = &mio.Retryer{
455457
NumMaxRetries: cr.Status.Minio.Retryer.NumMaxRetries,
456-
},
458+
}
457459
}
458460
if cr.Status.Minio.CredentialsSecret != "" {
459461
minioSecret, err := secret(ctx, r.client, cr.GetNamespace(), cr.Status.Minio.CredentialsSecret)

0 commit comments

Comments
 (0)