Skip to content

Commit 6bd5496

Browse files
committed
feat(cluster): add tolerations support for cluster (#834)
Signed-off-by: Loris Torikian <loris_torikian@hotmail.fr>
1 parent d4f70fd commit 6bd5496

4 files changed

Lines changed: 15 additions & 0 deletions

File tree

charts/cluster/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ Kubernetes: `>=1.29.0-0`
203203
| cluster.storage.size | string | `"8Gi"` | |
204204
| cluster.storage.storageClass | string | `""` | |
205205
| cluster.superuserSecret | string | `""` | |
206+
| cluster.tolerations | list | `[]` | Tolerations for Pods. |
206207
| cluster.walStorage.enabled | bool | `false` | |
207208
| cluster.walStorage.size | string | `"1Gi"` | |
208209
| cluster.walStorage.storageClass | string | `""` | |

charts/cluster/templates/cluster.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ spec:
3838
resources:
3939
{{- toYaml . | nindent 4 }}
4040
{{ end }}
41+
{{- with .Values.cluster.tolerations }}
42+
tolerations:
43+
{{- toYaml . | nindent 4 }}
44+
{{- end }}
4145
{{- with .Values.cluster.affinity }}
4246
affinity:
4347
{{- toYaml . | nindent 4 }}

charts/cluster/values.schema.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,13 @@
565565
"default": "",
566566
"type": "string"
567567
},
568+
"tolerations": {
569+
"description": "Tolerations for Pods.",
570+
"items": {
571+
"required": []
572+
},
573+
"type": "array"
574+
},
568575
"walStorage": {
569576
"properties": {
570577
"enabled": {

charts/cluster/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,9 @@ cluster:
243243
# -- The instances' log level, one of the following values: error, warning, info (default), debug, trace
244244
logLevel: "info"
245245

246+
# -- Tolerations for Pods.
247+
tolerations: []
248+
246249
# -- Affinity/Anti-affinity rules for Pods.
247250
# See: https://cloudnative-pg.io/documentation/current/cloudnative-pg.v1/#postgresql-cnpg-io-v1-AffinityConfiguration
248251
affinity:

0 commit comments

Comments
 (0)