From c29a1ab87a32588540257cdb2f13ecb0b46606cb Mon Sep 17 00:00:00 2001 From: deoomen Date: Fri, 14 Jun 2024 19:16:49 +0200 Subject: [PATCH] fix: :bug: storageType as global env fix potential breaking change --- charts/dify/templates/_helpers.tpl | 2 ++ charts/dify/values.yaml | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/charts/dify/templates/_helpers.tpl b/charts/dify/templates/_helpers.tpl index 8a83669..16035e0 100644 --- a/charts/dify/templates/_helpers.tpl +++ b/charts/dify/templates/_helpers.tpl @@ -81,6 +81,8 @@ commonBackendEnvs are for api and worker containers {{- define "dify.commonBackendEnvs" -}} +- name: STORAGE_TYPE + value: {{ .Values.global.storageType }} {{- if .Values.redis.embedded }} - name: CELERY_BROKER_URL value: redis://:{{ .Values.redis.auth.password }}@{{ include "dify.fullname" . }}-redis-master:6379/1 diff --git a/charts/dify/values.yaml b/charts/dify/values.yaml index 07773d6..82d5910 100644 --- a/charts/dify/values.yaml +++ b/charts/dify/values.yaml @@ -19,6 +19,7 @@ global: image: tag: "" edition: "SELF_HOSTED" + storageType: "s3" # the following extra configs would be injected into: # * frontend # * api @@ -39,8 +40,6 @@ global: # secretKeyRef: # name: dify # key: SECRET_KEY - - name: STORAGE_TYPE - value: "s3" ingress: enabled: false