mirror of
https://github.com/tencentmusic/cube-studio.git
synced 2024-11-21 01:16:33 +08:00
add check
This commit is contained in:
parent
d7319c13fa
commit
1a03001b36
@ -22,7 +22,7 @@ def check_tables():
|
||||
print(results)
|
||||
for table_name in ['ab_permission', 'ab_permission_view', 'ab_permission_view_role', 'ab_register_user', 'ab_role', 'ab_user', 'ab_user_role', 'ab_view_menu', 'alembic_version', 'docker', 'images', 'inferenceservice', 'job_template', 'kfservice', 'logs', 'nni', 'notebook', 'pipeline', 'project', 'project_user', 'repository', 'run', 'service', 'service_pipeline', 'task', 'user_attribute', 'workflow']:
|
||||
if table_name not in results:
|
||||
print('kubeflow db下,table不完整,请\n1、kubectl delete -k cube/overlays\n2、drop database kubeflow\n3、kubectl apply -k cube/overlays')
|
||||
print('kubeflow db下,table %s不完整,请\n1、kubectl delete -k cube/overlays\n2、drop database kubeflow\n3、kubectl apply -k cube/overlays'%table_name)
|
||||
exit(1)
|
||||
|
||||
check_tables()
|
||||
|
Loading…
Reference in New Issue
Block a user