mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-06 14:51:49 +02:00
minore changes
This commit is contained in:
@@ -1316,11 +1316,12 @@ func (c *Cluster) generateLogicalBackupJob() (*batchv1beta1.CronJob, error) {
|
||||
return nil, fmt.Errorf("could not generate pod template for logical backup cron job: %v", err)
|
||||
}
|
||||
|
||||
// pods of k8s jobs support only "OnFailure" or "Never"
|
||||
// but the default is "Always"
|
||||
podTemplate.Spec.RestartPolicy = "OnFailure"
|
||||
podTemplate.Spec.Affinity = &podAffinity
|
||||
|
||||
// affects containers within a pod on the same node
|
||||
// pods of k8s jobs support only "OnFailure" or "Never"
|
||||
podTemplate.Spec.RestartPolicy = "Never"
|
||||
|
||||
jobSpec := batchv1.JobSpec{Template: *podTemplate}
|
||||
|
||||
jobTemplateSpec := batchv1beta1.JobTemplateSpec{
|
||||
|
||||
Reference in New Issue
Block a user