fix: 修复helm chart不启用WebUI时仍然加载无用的数据卷的问题

This commit is contained in:
zhangxinhui02
2025-11-21 04:36:56 +08:00
parent 96ebcddf76
commit b93bd8dc14

View File

@@ -142,6 +142,7 @@ spec:
path: .env
name: {{ .Release.Name }}-maibot-core-env-config
name: env-config
{{- if not .Values.core.webui.enabled }}
- configMap:
items:
- key: model_config.toml
@@ -154,6 +155,7 @@ spec:
path: bot_config.toml
name: {{ .Release.Name }}-maibot-core-bot-config
name: bot-config
{{- end }}
{{- if .Values.statistics_dashboard.enabled }}
- name: statistics
persistentVolumeClaim: