diff --git a/charts/dify/Chart.yaml b/charts/dify/Chart.yaml index 946a4b5..6ec56b3 100644 --- a/charts/dify/Chart.yaml +++ b/charts/dify/Chart.yaml @@ -20,13 +20,13 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.9.0 +version: 0.9.1 # This is the version number of the application being deployed. This version number should be # 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: "1.13.0" +appVersion: "1.13.3" dependencies: - name: redis diff --git a/charts/dify/templates/_helpers.tpl b/charts/dify/templates/_helpers.tpl index 97a955c..301b9fa 100644 --- a/charts/dify/templates/_helpers.tpl +++ b/charts/dify/templates/_helpers.tpl @@ -134,6 +134,19 @@ commonBackendEnvs are for api and worker containers value: {{ .Values.minio.auth.rootPassword }} {{- end }} +- name: CODE_EXECUTION_ENDPOINT + value: "http://{{ include "dify.fullname" . }}-sandbox" +- name: CODE_EXECUTION_API_KEY +{{- if .Values.sandbox.apiKeySecret }} + valueFrom: + secretKeyRef: + name: {{ .Values.sandbox.apiKeySecret }} + key: sandbox-api-key +{{- else if .Values.sandbox.apiKey }} + value: {{ .Values.sandbox.apiKey | quote }} +{{- else }} +{{- end }} + {{- if .Values.pluginDaemon.enabled }} - name: PLUGIN_DAEMON_URL value: "http://{{ include "dify.fullname" . }}-plugin-daemon:{{ .Values.pluginDaemon.service.port }}" diff --git a/charts/dify/templates/deployment.yaml b/charts/dify/templates/deployment.yaml index b9dc760..fb823ab 100644 --- a/charts/dify/templates/deployment.yaml +++ b/charts/dify/templates/deployment.yaml @@ -54,18 +54,6 @@ spec: {{- with .Values.api.envs }} {{- toYaml . | nindent 12 }} {{- end }} - - name: CODE_EXECUTION_ENDPOINT - value: "http://{{ include "dify.fullname" . }}-sandbox" - - name: CODE_EXECUTION_API_KEY - {{- if .Values.sandbox.apiKeySecret }} - valueFrom: - secretKeyRef: - name: {{ .Values.sandbox.apiKeySecret }} - key: sandbox-api-key - {{- else if .Values.sandbox.apiKey }} - value: {{ .Values.sandbox.apiKey | quote }} - {{- else }} - {{- end }} {{- with .Values.volumeMounts }} volumeMounts: {{- toYaml . | nindent 12 }}