Skip to content

Commit

Permalink
controller: too many pods for backup radondb#517 (radondb#525)
Browse files Browse the repository at this point in the history
  • Loading branch information
acekingke authored Jun 14, 2022
1 parent f756569 commit 43ab2cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backup/syncer/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 43ab2cb

Please sign in to comment.