From adc98f8e8d457fa92e434a68a1a3cbb27bc15d3d Mon Sep 17 00:00:00 2001 From: Vajeen Karunathilaka Date: Tue, 23 Apr 2024 13:02:26 +0200 Subject: [PATCH] Add option to override storage size in postgresql volume claim --- charts/airbyte/README.md | 1 + charts/airbyte/templates/airbyte-db.yaml | 2 +- charts/airbyte/values.yaml | 4 ++++ charts/airbyte/values.yaml.test | 3 +++ 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/charts/airbyte/README.md b/charts/airbyte/README.md index 5953bcbce8c..3795aefaf59 100644 --- a/charts/airbyte/README.md +++ b/charts/airbyte/README.md @@ -243,6 +243,7 @@ Helm chart to deploy airbyte | postgresql.postgresqlDatabase | string | `"db-airbyte"` | Airbyte Postgresql database | | postgresql.postgresqlPassword | string | `"airbyte"` | Airbyte Postgresql password | | postgresql.postgresqlUsername | string | `"airbyte"` | Airbyte Postgresql username | +| postgresql.storage.volumeClaimValue | string | `500Mi` | | | postgresql.tolerations | list | `[]` | Tolerations for postgresql pod assignment, see https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ | | server.affinity | object | `{}` | Affinity and anti-affinity for server pod assignment, see https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity | | server.containerSecurityContext | object | `{}` | Security context for the container | diff --git a/charts/airbyte/templates/airbyte-db.yaml b/charts/airbyte/templates/airbyte-db.yaml index c3511e593a4..75e6e705abb 100644 --- a/charts/airbyte/templates/airbyte-db.yaml +++ b/charts/airbyte/templates/airbyte-db.yaml @@ -75,5 +75,5 @@ spec: accessModes: [ "ReadWriteOnce" ] resources: requests: - storage: 500Mi + storage: {{ .Values.postgresql.storage.volumeClaimValue }} {{- end }} diff --git a/charts/airbyte/values.yaml b/charts/airbyte/values.yaml index da668b8f3d1..d2debad7562 100644 --- a/charts/airbyte/values.yaml +++ b/charts/airbyte/values.yaml @@ -1285,6 +1285,10 @@ postgresql: ## image.repository Repository for airbyte-db statefulset image: repository: airbyte/db + + storage: + volumeClaimValue: 500Mi + # -- Airbyte Postgresql username postgresqlUsername: airbyte # -- Airbyte Postgresql password diff --git a/charts/airbyte/values.yaml.test b/charts/airbyte/values.yaml.test index 9871d196615..128b63286a5 100644 --- a/charts/airbyte/values.yaml.test +++ b/charts/airbyte/values.yaml.test @@ -1351,6 +1351,9 @@ postgresql: image: repository: airbyte/db + storage: + volumeClaimValue: 500Mi + postgresqlUsername: airbyte postgresqlPassword: airbyte postgresqlDatabase: db-airbyte