Skip to content

Commit 6042df2

Browse files
committed
Change Restart Policy in Backrest Job Template
The "restartPolicy" in the pgBackRest job template (backrest-job.json) has been updated in both the Bash and Ansible installers from "OnFailure" to "Never". This aligns the restart policy for backrest jobs with all other jobs created by the Operator, while also ensuring the Job is properly run when using older versions of Kubernetes (e.g. OCP 3.11).
1 parent 15598bb commit 6042df2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ansible/roles/pgo-operator/files/pgo-configs/backrest-job.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
}
7676
}]
7777
}],
78-
"restartPolicy": "OnFailure"
78+
"restartPolicy": "Never"
7979
}
8080
}
8181
}

conf/postgres-operator/backrest-job.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
}
7676
}]
7777
}],
78-
"restartPolicy": "OnFailure"
78+
"restartPolicy": "Never"
7979
}
8080
}
8181
}

0 commit comments

Comments
 (0)