From f8b78734227065f27312125f4caec4c78f2c8c01 Mon Sep 17 00:00:00 2001 From: zhangxinhui02 Date: Tue, 23 Dec 2025 03:38:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(helm=20chart):=20=E4=BF=AE=E6=AD=A3helm=20c?= =?UTF-8?q?hart=E9=85=8D=E7=BD=AE=E8=BF=81=E7=A7=BB=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- helm-chart/preprocessor/preprocessor.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/helm-chart/preprocessor/preprocessor.py b/helm-chart/preprocessor/preprocessor.py index 60a7f963..a62c3218 100644 --- a/helm-chart/preprocessor/preprocessor.py +++ b/helm-chart/preprocessor/preprocessor.py @@ -47,14 +47,10 @@ def migrate_old_config(): 'core_model_config.toml': False } - # 如果存储卷中已存在配置文件,则警告并跳过迁移 + # 如果存储卷中已存在配置文件,则跳过迁移 if os.path.isfile('/app/config/core/bot_config.toml') or os.path.isfile('/app/config/core/model_config.toml') or \ os.path.isfile('/app/config/adapter/config.toml'): - log(func_name, 'Found existing config file(s) in PV. Migration will be skipped. ' - 'Please check the configs MANUALLY.', level='WARNING') - log(func_name, '\tIf configs were ALREADY MIGRATED, you can delete old configmaps safely.', level='WARNING') - log(func_name, '\tIf configs were NOT MIGRATED, you should MIGRATE them MANUALLY, then delete the configmaps.', - level='WARNING') + log(func_name, 'Found existing config file(s) in PV. Migration will be ignored. Done.') return def migrate_cm_to_file(cm_name: str, key_name: str, file_path: str) -> bool: