From b75f510bcc1e14405304e46b51a089924823a8aa Mon Sep 17 00:00:00 2001 From: Jin Date: Tue, 3 Oct 2023 13:56:35 +0800 Subject: [PATCH] Add storage override for PostgreSQL PVC Request --- charts/airbyte/README.md | 1 + charts/airbyte/templates/airbyte-db.yaml | 2 +- charts/airbyte/values.yaml | 2 ++ charts/airbyte/values.yaml.test | 2 ++ 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/charts/airbyte/README.md b/charts/airbyte/README.md index f9df04ca652..96eccec04de 100644 --- a/charts/airbyte/README.md +++ b/charts/airbyte/README.md @@ -188,6 +188,7 @@ Helm chart to deploy airbyte | postgresql.postgresqlDatabase | string | `"db-airbyte"` | | | postgresql.postgresqlPassword | string | `"airbyte"` | | | postgresql.postgresqlUsername | string | `"airbyte"` | | +| postgresql.storage.volumeClaimValue | string | `500Mi` | | | server.affinity | object | `{}` | | | server.containerSecurityContext | object | `{}` | | | server.enabled | bool | `true` | | diff --git a/charts/airbyte/templates/airbyte-db.yaml b/charts/airbyte/templates/airbyte-db.yaml index b8d57c1c79f..843c360c3bb 100644 --- a/charts/airbyte/templates/airbyte-db.yaml +++ b/charts/airbyte/templates/airbyte-db.yaml @@ -60,5 +60,5 @@ spec: accessModes: [ "ReadWriteOnce" ] resources: requests: - storage: 500Mi + storage: {{ .Values.postgresql.storage.volumeClaimValue }} {{- end }} \ No newline at end of file diff --git a/charts/airbyte/values.yaml b/charts/airbyte/values.yaml index d1410db3db3..c0cd7ec2241 100644 --- a/charts/airbyte/values.yaml +++ b/charts/airbyte/values.yaml @@ -1267,6 +1267,8 @@ postgresql: commonAnnotations: helm.sh/hook: pre-install,pre-upgrade helm.sh/hook-weight: "-1" + storage: + volumeClaimValue: 500Mi ## External PostgreSQL configuration ## All of these values are only used when postgresql.enabled is set to false ## externalDatabase.host Database host diff --git a/charts/airbyte/values.yaml.test b/charts/airbyte/values.yaml.test index b2fc3942424..6d59478e75b 100644 --- a/charts/airbyte/values.yaml.test +++ b/charts/airbyte/values.yaml.test @@ -1236,6 +1236,8 @@ postgresql: commonAnnotations: helm.sh/hook: pre-install,pre-upgrade helm.sh/hook-weight: "-1" + storage: + volumeClaimValue: 500Mi ## External PostgreSQL configuration ## All of these values are only used when postgresql.enabled is set to false ## externalDatabase.host Database host