From 9ccc7525a58f8d639c900095075b7ff21d233921 Mon Sep 17 00:00:00 2001 From: Abdullah Talakey Date: Tue, 26 Apr 2022 14:21:41 +0300 Subject: [PATCH] add storageClass to redis and objectStore PVCs --- .../templates/minio-data-persistentvolumeclaim.yaml | 7 ++++++- .../templates/redis-data-persistentvolumeclaim.yaml | 7 ++++++- charts/budibase/values.yaml | 10 ++++++++++ 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/charts/budibase/templates/minio-data-persistentvolumeclaim.yaml b/charts/budibase/templates/minio-data-persistentvolumeclaim.yaml index d122ad0a3e..7a6e05a66a 100644 --- a/charts/budibase/templates/minio-data-persistentvolumeclaim.yaml +++ b/charts/budibase/templates/minio-data-persistentvolumeclaim.yaml @@ -12,5 +12,10 @@ spec: resources: requests: storage: {{ .Values.services.objectStore.storage }} + {{- if (eq "-" .Values.services.objectStore.storageClass) }} + storageClassName: "" + {{- else }} + storageClassName: "{{ .Values.services.objectStore.storageClass }}" + {{- end }} status: {} -{{- end }} \ No newline at end of file +{{- end }} diff --git a/charts/budibase/templates/redis-data-persistentvolumeclaim.yaml b/charts/budibase/templates/redis-data-persistentvolumeclaim.yaml index 2cb5ee8eab..5f063dc664 100644 --- a/charts/budibase/templates/redis-data-persistentvolumeclaim.yaml +++ b/charts/budibase/templates/redis-data-persistentvolumeclaim.yaml @@ -12,5 +12,10 @@ spec: resources: requests: storage: {{ .Values.services.redis.storage }} + {{- if (eq "-" .Values.services.redis.storageClass) }} + storageClassName: "" + {{- else }} + storageClassName: "{{ .Values.services.redis.storageClass }}" + {{- end }} status: {} -{{- end }} \ No newline at end of file +{{- end }} diff --git a/charts/budibase/values.yaml b/charts/budibase/values.yaml index 81fdfb63d2..be0612299c 100644 --- a/charts/budibase/values.yaml +++ b/charts/budibase/values.yaml @@ -149,6 +149,11 @@ services: url: "" # only change if pointing to existing redis cluster and enabled: false password: "budibase" # recommended to override if using built-in redis storage: 100Mi + ## If defined, storageClassName: + ## If set to "-", storageClassName: "", which disables dynamic provisioning + ## If undefined (the default) or set to null, no storageClassName spec is + ## set, choosing the default provisioner. + storageClass: "-" objectStore: minio: true @@ -160,6 +165,11 @@ services: region: "" # AWS_REGION if using S3 or existing minio secret url: "http://minio-service:9000" # only change if pointing to existing minio cluster or S3 and minio: false storage: 100Mi + ## If defined, storageClassName: + ## If set to "-", storageClassName: "", which disables dynamic provisioning + ## If undefined (the default) or set to null, no storageClassName spec is + ## set, choosing the default provisioner. + storageClass: "-" # Override values in couchDB subchart couchdb: