From 43ab2cb1f8ada724a0e1c101d6149bb3707bf0f0 Mon Sep 17 00:00:00 2001 From: aceking Date: Tue, 14 Jun 2022 18:22:38 +0800 Subject: [PATCH] controller: too many pods for backup #517 (#525) --- backup/syncer/job.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backup/syncer/job.go b/backup/syncer/job.go index 8b88ab28..b9250bc3 100644 --- a/backup/syncer/job.go +++ b/backup/syncer/job.go @@ -74,8 +74,9 @@ func (s *jobSyncer) SyncFn() error { "Host": s.backup.Spec.HostName, "Type": utils.BackupJobTypeName, } - + var backoff int32 = 3 s.job.Spec.Template.Spec = s.ensurePodSpec(s.job.Spec.Template.Spec) + s.job.Spec.BackoffLimit = &backoff return nil }