Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bitnami/postgresql-ha] add backup.cronjob.tolerations options #25683

Merged
merged 9 commits into from
May 20, 2024
2 changes: 1 addition & 1 deletion bitnami/postgresql-ha/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ maintainers:
name: postgresql-ha
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/postgresql-ha
version: 14.0.13
version: 14.0.14
1 change: 1 addition & 0 deletions bitnami/postgresql-ha/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,7 @@ A default `StorageClass` is needed in the Kubernetes cluster to dynamically prov
| `backup.cronjob.labels` | Set the cronjob labels | `{}` |
| `backup.cronjob.annotations` | Set the cronjob annotations | `{}` |
| `backup.cronjob.nodeSelector` | Node labels for PostgreSQL backup CronJob pod assignment | `{}` |
| `backup.cronjob.tolerations` | Tolerations for PostgreSQL backup CronJob pod assignment | `[]` |
| `backup.cronjob.storage.existingClaim` | Provide an existing `PersistentVolumeClaim` (only when `architecture=standalone`) | `""` |
| `backup.cronjob.storage.resourcePolicy` | Setting it to "keep" to avoid removing PVCs during a helm delete operation. Leaving it empty will delete PVCs after the chart deleted | `""` |
| `backup.cronjob.storage.storageClass` | PVC Storage Class for the backup data volume | `""` |
Expand Down
3 changes: 3 additions & 0 deletions bitnami/postgresql-ha/templates/backup/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ spec:
{{- if .Values.backup.cronjob.nodeSelector }}
nodeSelector: {{- include "common.tplvalues.render" (dict "value" .Values.backup.cronjob.nodeSelector "context" $) | nindent 12 }}
{{- end }}
{{- if .Values.backup.cronjob.tolerations }}
tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.backup.cronjob.tolerations "context" $) | nindent 12 }}
{{- end }}
containers:
- name: {{ include "postgresql-ha.postgresql" . }}-pgdumpall
image: {{ include "postgresql-ha.postgresql.image" . }}
Expand Down
4 changes: 4 additions & 0 deletions bitnami/postgresql-ha/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2209,6 +2209,10 @@ backup:
## ref: https://kubernetes.io/docs/user-guide/node-selection/
##
nodeSelector: {}
## @param backup.cronjob.tolerations Tolerations for PostgreSQL backup CronJob pod assignment
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
##
tolerations: []
storage:
## @param backup.cronjob.storage.existingClaim Provide an existing `PersistentVolumeClaim` (only when `architecture=standalone`)
## If defined, PVC must be created manually before volume will be bound
Expand Down
Loading