mirror of https://github.com/Mai-with-u/MaiBot.git
fix: 修复helm chart不启用WebUI时仍然加载无用的数据卷的问题
parent
96ebcddf76
commit
b93bd8dc14
|
|
@ -142,6 +142,7 @@ spec:
|
||||||
path: .env
|
path: .env
|
||||||
name: {{ .Release.Name }}-maibot-core-env-config
|
name: {{ .Release.Name }}-maibot-core-env-config
|
||||||
name: env-config
|
name: env-config
|
||||||
|
{{- if not .Values.core.webui.enabled }}
|
||||||
- configMap:
|
- configMap:
|
||||||
items:
|
items:
|
||||||
- key: model_config.toml
|
- key: model_config.toml
|
||||||
|
|
@ -154,6 +155,7 @@ spec:
|
||||||
path: bot_config.toml
|
path: bot_config.toml
|
||||||
name: {{ .Release.Name }}-maibot-core-bot-config
|
name: {{ .Release.Name }}-maibot-core-bot-config
|
||||||
name: bot-config
|
name: bot-config
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.statistics_dashboard.enabled }}
|
{{- if .Values.statistics_dashboard.enabled }}
|
||||||
- name: statistics
|
- name: statistics
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue