diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f1e43f..3b8893c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ + 新增全局flag`not_verify`用于跳过https的验证 + 子命令`updateservicebywebhook`的`tokens`参数现在是位置参数 ++ 子命令`updateservicebywebhook`现在可以用执行目录下的`update_service_by_webhooks_config.json`文件作为配置 ++ 子命令`createorupdatestack`的`endpoints`参数现在是位置参数 ++ 子命令`createorupdatestack`现在可以用执行目录下的`create_or_update_stack_config.json`文件作为配置 ++ 子命令`updateserviceinstack`的`deploy_path`参数参数现在是位置参数 ++ 子命令`updateserviceinstack`现在可以用执行目录下的`update_service_in_stack_config.json`文件作为配置 ## bug修复 diff --git a/portainer_deploy_tool/create_or_update_stack.py b/portainer_deploy_tool/create_or_update_stack.py index 8b23ff4..59ca85d 100644 --- a/portainer_deploy_tool/create_or_update_stack.py +++ b/portainer_deploy_tool/create_or_update_stack.py @@ -233,6 +233,7 @@ class CreateOrUpdateStack(EntryPoint): default_config_file_paths = [ "./create_or_update_stack_config.json" ] + argparse_noflag = "endpoints" schema = { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", diff --git a/portainer_deploy_tool/update_service_by_webhook.py b/portainer_deploy_tool/update_service_by_webhook.py index 75b47e2..567c691 100644 --- a/portainer_deploy_tool/update_service_by_webhook.py +++ b/portainer_deploy_tool/update_service_by_webhook.py @@ -23,6 +23,9 @@ class UpdateServiceByWebhooks(EntryPoint): """利用webhook更新已经存在的service.""" + default_config_file_paths = [ + "./update_service_by_webhooks_config.json" + ] argparse_noflag = "tokens" schema = { "$schema": "http://json-schema.org/draft-07/schema#", diff --git a/portainer_deploy_tool/update_service_in_stack.py b/portainer_deploy_tool/update_service_in_stack.py index 90bc0fa..e80d984 100644 --- a/portainer_deploy_tool/update_service_in_stack.py +++ b/portainer_deploy_tool/update_service_in_stack.py @@ -55,6 +55,10 @@ class UpdateServiceInStack(EntryPoint): """更新已经存在的stack.""" + default_config_file_paths = [ + "./update_service_in_stack_config.json" + ] + argparse_noflag = "deploy_path" schema = { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object",