Skip to content

Commit

Permalink
[bitnami/postgresql-ha] add backup.cronjob.tolerations options
Browse files Browse the repository at this point in the history
Signed-off-by: Colin Lee
  • Loading branch information
colin719 committed May 11, 2024
1 parent c682036 commit d855958
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
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.10
version: 14.0.11
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 pods 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

0 comments on commit d855958

Please sign in to comment.