File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -2357,6 +2357,8 @@ func (c *Cluster) generateLogicalBackupJob() (*batchv1.CronJob, error) {
23572357
23582358 tolerationsSpec := tolerations (& spec .Tolerations , c .OpConfig .PodToleration )
23592359
2360+ topologySpreadConstraintsSpec := generateTopologySpreadConstraints (labels , spec .TopologySpreadConstraints )
2361+
23602362 // re-use the method that generates DB pod templates
23612363 if podTemplate , err = c .generatePodTemplate (
23622364 c .Namespace ,
@@ -2366,7 +2368,7 @@ func (c *Cluster) generateLogicalBackupJob() (*batchv1.CronJob, error) {
23662368 []v1.Container {},
23672369 []v1.Container {},
23682370 util .False (),
2369- []v1. TopologySpreadConstraint {} ,
2371+ topologySpreadConstraintsSpec ,
23702372 & tolerationsSpec ,
23712373 nil ,
23722374 nil ,
You can’t perform that action at this time.
0 commit comments