add check

This commit is contained in:
pengluan 2022-05-17 15:15:21 +08:00
parent d7319c13fa
commit 1a03001b36

View File

@ -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()