Skip to content

Commit bf1bd76

Browse files
committed
1. Upgrade dify version to 0.6.8
2. Change default tag for sandbox to 0.2.0, latest does not point to the newest version 3. Use configmap to mount sandbox's python-requirements.txt 4. Update chart version to 0.3.5
1 parent bffc88b commit bf1bd76

File tree

4 files changed

+23
-3
lines changed

4 files changed

+23
-3
lines changed

charts/dify/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ type: application
2020
# This is the chart version. This version number should be incremented each time you make changes
2121
# to the chart and its templates, including the app version.
2222
# Versions are expected to follow Semantic Versioning (https://semver.org/)
23-
version: 0.3.4
23+
version: 0.3.5
2424

2525
# This is the version number of the application being deployed. This version number should be
2626
# incremented each time you make changes to the application. Versions are not expected to
2727
# follow Semantic Versioning. They should reflect the version the application is using.
2828
# It is recommended to use it with quotes.
29-
appVersion: "0.6.3"
29+
appVersion: "0.6.8"
3030

3131
dependencies:
3232
- name: redis

charts/dify/templates/configmap.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
apiVersion: v1
3+
kind: ConfigMap
4+
metadata:
5+
name: {{ include "dify.fullname" . }}-config
6+
data:
7+
python-requirements.txt: |
8+
{{- range .Values.sandbox.config.python_requirements }}
9+
{{ . }}
10+
{{- end }}

charts/dify/templates/deployment.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,10 @@ spec:
315315
value: {{ .Values.sandbox.apiKey | quote }}
316316
{{- else }}
317317
{{- end }}
318+
volumeMounts:
319+
- name: config-volume
320+
mountPath: /dependencies/python-requirements.txt
321+
subPath: python-requirements.txt
318322
ports:
319323
- name: http
320324
containerPort: {{ .Values.sandbox.containerPort }}
@@ -341,3 +345,7 @@ spec:
341345
tolerations:
342346
{{- toYaml . | nindent 8 }}
343347
{{- end }}
348+
volumes:
349+
- name: config-volume
350+
configMap:
351+
name: dify-config

charts/dify/values.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,9 @@ sandbox:
292292
repository: langgenius/dify-sandbox
293293
pullPolicy: IfNotPresent
294294
# Overrides the image tag whose default is the chart appVersion.
295-
tag: ""
295+
tag: "0.2.0"
296+
config:
297+
python_requirements: {}
296298

297299
envs:
298300
- name: GIN_MODE

0 commit comments

Comments
 (0)