From 508f37ed996630fe4875ff162210c712aad7cf83 Mon Sep 17 00:00:00 2001 From: Colin Lee Date: Sat, 11 May 2024 17:04:28 +0800 Subject: [PATCH 1/4] [bitnami/postgresql-ha] add backup.cronjob.tolerations options Signed-off-by: Colin Lee --- bitnami/postgresql-ha/Chart.yaml | 2 +- bitnami/postgresql-ha/README.md | 1 + bitnami/postgresql-ha/templates/backup/cronjob.yaml | 3 +++ bitnami/postgresql-ha/values.yaml | 4 ++++ 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/bitnami/postgresql-ha/Chart.yaml b/bitnami/postgresql-ha/Chart.yaml index 5ef23a68c68cb8..02839bad62acf4 100644 --- a/bitnami/postgresql-ha/Chart.yaml +++ b/bitnami/postgresql-ha/Chart.yaml @@ -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 diff --git a/bitnami/postgresql-ha/README.md b/bitnami/postgresql-ha/README.md index b27bfec4c52902..589a884a7c8f83 100644 --- a/bitnami/postgresql-ha/README.md +++ b/bitnami/postgresql-ha/README.md @@ -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 | `""` | diff --git a/bitnami/postgresql-ha/templates/backup/cronjob.yaml b/bitnami/postgresql-ha/templates/backup/cronjob.yaml index df70ec2158d42f..297360a2a3bcf8 100644 --- a/bitnami/postgresql-ha/templates/backup/cronjob.yaml +++ b/bitnami/postgresql-ha/templates/backup/cronjob.yaml @@ -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" . }} diff --git a/bitnami/postgresql-ha/values.yaml b/bitnami/postgresql-ha/values.yaml index 9180c4213206bc..f74fb07372de68 100644 --- a/bitnami/postgresql-ha/values.yaml +++ b/bitnami/postgresql-ha/values.yaml @@ -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 From 1c528a6fd7dbfbde38af782144c3a32983d88900 Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Sat, 11 May 2024 09:18:10 +0000 Subject: [PATCH 2/4] Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Containers --- bitnami/postgresql-ha/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/postgresql-ha/README.md b/bitnami/postgresql-ha/README.md index 589a884a7c8f83..21a5a51104d664 100644 --- a/bitnami/postgresql-ha/README.md +++ b/bitnami/postgresql-ha/README.md @@ -907,7 +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.tolerations` | Tolerations for PostgreSQL backup CronJob pods 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 | `""` | From 11c6ddabc8d430c0e108d8a325f711f956166c14 Mon Sep 17 00:00:00 2001 From: Colin Lee Date: Sat, 11 May 2024 17:20:30 +0800 Subject: [PATCH 3/4] [bitnami/postgresql-ha] add backup.cronjob.tolerations options Signed-off-by: Colin Lee --- bitnami/postgresql-ha/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/postgresql-ha/values.yaml b/bitnami/postgresql-ha/values.yaml index f74fb07372de68..137c6623ef1151 100644 --- a/bitnami/postgresql-ha/values.yaml +++ b/bitnami/postgresql-ha/values.yaml @@ -2209,7 +2209,7 @@ backup: ## ref: https://kubernetes.io/docs/user-guide/node-selection/ ## nodeSelector: {} - ## @param backup.cronjob.tolerations Tolerations for PostgreSQL backup CronJob pods assignment + ## @param backup.cronjob.tolerations Tolerations for PostgreSQL backup CronJob pod assignment ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ ## tolerations: [] From f166b8c7592fc8adb616dd958f8cd352f520384b Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Sat, 11 May 2024 09:21:32 +0000 Subject: [PATCH 4/4] Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Containers --- bitnami/postgresql-ha/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/postgresql-ha/README.md b/bitnami/postgresql-ha/README.md index 21a5a51104d664..7f6347deea1d40 100644 --- a/bitnami/postgresql-ha/README.md +++ b/bitnami/postgresql-ha/README.md @@ -907,7 +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 pods 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 | `""` |