From 1a03001b36d9a2ba553deb21686a5fe8f8cbf1c9 Mon Sep 17 00:00:00 2001 From: pengluan Date: Tue, 17 May 2022 15:15:21 +0800 Subject: [PATCH] add check --- myapp/check_tables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/myapp/check_tables.py b/myapp/check_tables.py index 6dbd5364..7177145e 100755 --- a/myapp/check_tables.py +++ b/myapp/check_tables.py @@ -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()