Skip to content

Commit

Permalink
1. Upgrade dify version to 0.6.8
Browse files Browse the repository at this point in the history
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.4
  • Loading branch information
majian159 committed May 14, 2024
1 parent bffc88b commit 2dc2000
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/dify/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ version: 0.3.4
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.6.3"
appVersion: "0.6.8"

dependencies:
- name: redis
Expand Down
7 changes: 7 additions & 0 deletions charts/dify/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "dify.fullname" . }}-config
data:
python-requirements.txt: ""
8 changes: 8 additions & 0 deletions charts/dify/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,10 @@ spec:
value: {{ .Values.sandbox.apiKey | quote }}
{{- else }}
{{- end }}
volumeMounts:
- name: config-volume
mountPath: /dependencies/python-requirements.txt
subPath: python-requirements.txt
ports:
- name: http
containerPort: {{ .Values.sandbox.containerPort }}
Expand All @@ -341,3 +345,7 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
- name: config-volume
configMap:
name: dify-config
2 changes: 1 addition & 1 deletion charts/dify/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ sandbox:
repository: langgenius/dify-sandbox
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: ""
tag: "0.2.0"

envs:
- name: GIN_MODE
Expand Down

0 comments on commit 2dc2000

Please sign in to comment.