fix(helm chart): 修正helm chart配置迁移提示。

pull/1458/head
zhangxinhui02 2025-12-23 03:38:29 +08:00
parent 742fb2e4c1
commit f8b7873422
No known key found for this signature in database
GPG Key ID: 22C23383864A313F
1 changed files with 2 additions and 6 deletions

View File

@ -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: