Skip to content

Commit 01ecdb0

Browse files
K8SPG-619: add restartPolicy and backoffLimit to .pgbackrest.jobs (#462)
* K8SPG-619: add `restartPolicy` and `backoffLimit` to `.pgbackrest.jobs` https://perconadev.atlassian.net/browse/K8SPG-619 * update README --------- Co-authored-by: Julio Pasinatto <julio.pasinatto@percona.com>
1 parent a999f4b commit 01ecdb0

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

charts/pg-db/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ The chart can be customized using the following configurable parameters:
142142
| `backups.pgbackrest.jobs.tolerations.operator` | The Kubernetes Pod tolerations operator for a backup job | `Equal` |
143143
| `backups.pgbackrest.jobs.tolerations.value` | The Kubernetes Pod tolerations value for a backup job | `connection-poolers` |
144144
| `backups.pgbackrest.jobs.securityContext` | The Kubernetes Pod security context for pgBackRest jobs | `{}` |
145+
| `backups.pgbackrest.jobs.livenessProbe` | The Kubernetes Pod livenessProbe structure for a backup job | `{}` |
146+
| `backups.pgbackrest.jobs.readinessProbe` | The Kubernetes Pod readinessProbe structure for a backup job | `{}` |
145147
| `backups.pgbackrest.global` | Settings, which are to be included in the global section of the pgBackRest configuration generated by the Operator | `/pgbackrest/postgres-operator/hippo/repo1` |
146148
| `backups.pgbackrest.repoHost.topologySpreadConstraints.maxSkew` | The degree to which Pods may be unevenly distributed under the Kubernetes Pod Topology Spread Constraints | `1` |
147149
| `backups.pgbackrest.repoHost.topologySpreadConstraints.topologyKey` | The key of node labels for the Kubernetes Pod Topology Spread Constraints | `my-node-label` |

charts/pg-db/templates/cluster.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,12 @@ spec:
377377
{{- end }}
378378
{{- if .Values.backups.pgbackrest.jobs }}
379379
jobs:
380+
{{- if .Values.backups.pgbackrest.jobs.restartPolicy }}
381+
restartPolicy: {{ .Values.backups.pgbackrest.jobs.restartPolicy }}
382+
{{- end }}
383+
{{- if .Values.backups.pgbackrest.jobs.backoffLimit }}
384+
backoffLimit: {{ .Values.backups.pgbackrest.jobs.backoffLimit }}
385+
{{- end }}
380386
{{- if .Values.backups.pgbackrest.jobs.priorityClassName }}
381387
priorityClassName: {{ .Values.backups.pgbackrest.jobs.priorityClassName }}
382388
{{- end }}

charts/pg-db/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,8 @@ backups:
343343
# - secret:
344344
# name: cluster1-pgbackrest-secrets
345345
# jobs:
346+
# restartPolicy: OnFailure
347+
# backoffLimit: 2
346348
# priorityClassName: high-priority
347349
# resources:
348350
# limits:

0 commit comments

Comments
 (0)