Skip to content

Commit

Permalink
fix: 🐛 storageType as global env
Browse files Browse the repository at this point in the history
fix potential breaking change
  • Loading branch information
deoomen committed Jun 14, 2024
1 parent d6b2dff commit c29a1ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions charts/dify/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions charts/dify/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ global:
image:
tag: ""
edition: "SELF_HOSTED"
storageType: "s3"
# the following extra configs would be injected into:
# * frontend
# * api
Expand All @@ -39,8 +40,6 @@ global:
# secretKeyRef:
# name: dify
# key: SECRET_KEY
- name: STORAGE_TYPE
value: "s3"

ingress:
enabled: false
Expand Down

0 comments on commit c29a1ab

Please sign in to comment.