feat: 为helm chart兼容WebUI,添加禁止覆盖配置的选项
This commit is contained in:
12
helm-chart/templates/core/configmap-model-config.yaml
Normal file
12
helm-chart/templates/core/configmap-model-config.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
{{- if or .Release.IsInstall .Values.config.enable_config_override }}
|
||||
# 渲染规则:
|
||||
# 初次安装,或配置了覆盖规则
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-maibot-core-model-config
|
||||
namespace: {{ .Release.Namespace }}
|
||||
data:
|
||||
model_config.toml: |
|
||||
{{ .Values.config.core_model_config | nindent 4 }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user