bk-plugin-framework 2.3.2rc0__tar.gz → 2.3.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/PKG-INFO +2 -2
- bk_plugin_framework-2.3.3/bk_plugin_framework/__version__.py +13 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/services/bpf_service/management/commands/data/api-definition.yml +8 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/services/bpf_service/management/commands/sync_plugin_apigw.py +2 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/pyproject.toml +2 -2
- bk_plugin_framework-2.3.2rc0/bk_plugin_framework/__version__.py +0 -13
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/__init__.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/constants.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/envs.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/hub/__init__.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/kit/__init__.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/kit/api.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/kit/authentication.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/kit/decorators.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/kit/plugin.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/metrics.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/runtime/__init__.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/runtime/callback/__init__.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/runtime/callback/api.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/runtime/callback/apps.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/runtime/callback/celery/__init__.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/runtime/callback/celery/queues.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/runtime/callback/celery/tasks.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/runtime/callback/migrations/__init__.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/runtime/callbacker.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/runtime/executor.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/runtime/loghub/__init__.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/runtime/loghub/admin.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/runtime/loghub/apps.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/runtime/loghub/log.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/runtime/loghub/migrations/0001_initial.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/runtime/loghub/migrations/__init__.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/runtime/loghub/models.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/runtime/schedule/__init__.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/runtime/schedule/admin.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/runtime/schedule/apps.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/runtime/schedule/celery/__init__.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/runtime/schedule/celery/beat.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/runtime/schedule/celery/queues.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/runtime/schedule/celery/tasks.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/runtime/schedule/migrations/0001_initial.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/runtime/schedule/migrations/0002_schedule_finish_at.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/runtime/schedule/migrations/0003_auto_20210830_1945.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/runtime/schedule/migrations/0004_schedule_scheduling.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/runtime/schedule/migrations/0005_schedule_err.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/runtime/schedule/migrations/__init__.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/runtime/schedule/models.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/runtime/schedule/utils.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/services/__init__.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/services/bpf_service/__init__.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/services/bpf_service/admin.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/services/bpf_service/api/__init__.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/services/bpf_service/api/callback.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/services/bpf_service/api/detail.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/services/bpf_service/api/invoke.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/services/bpf_service/api/logs.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/services/bpf_service/api/meta.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/services/bpf_service/api/permissions.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/services/bpf_service/api/plugin_api_dispatch.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/services/bpf_service/api/schedule.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/services/bpf_service/api/serializers/__init__.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/services/bpf_service/apps.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/services/bpf_service/management/__init__.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/services/bpf_service/management/commands/__init__.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/services/bpf_service/management/commands/data/api-resources.yml +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/services/bpf_service/management/commands/data/api-strategy-cors.yml +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/services/bpf_service/middlewares.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/services/bpf_service/migrations/__init__.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/services/bpf_service/urls.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/services/debug_panel/__init__.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/services/debug_panel/management/commands/__init__.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/services/debug_panel/management/commands/rundebugserver.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/services/debug_panel/migrations/__init__.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/services/debug_panel/views.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/utils/__init__.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/utils/local.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/utils/log.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/utils/module_load.py +0 -0
- {bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/utils/validations.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: bk-plugin-framework
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.3
|
|
4
4
|
Summary: bk plugin python framework
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: Your Name
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.12
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.13
|
|
17
17
|
Requires-Dist: apigw-manager[extra] (>=1.0.6,<4)
|
|
18
|
-
Requires-Dist: bk-plugin-runtime (==2.1.
|
|
18
|
+
Requires-Dist: bk-plugin-runtime (==2.1.2)
|
|
19
19
|
Requires-Dist: jsonschema (>=2.5.0,<5.0.0)
|
|
20
20
|
Requires-Dist: pydantic (>=1.0,<3)
|
|
21
21
|
Requires-Dist: werkzeug (>=2.0.0,<4.0)
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
"""
|
|
3
|
+
Tencent is pleased to support the open source community by making 蓝鲸智云 - PaaS平台 (BlueKing - PaaS System) available.
|
|
4
|
+
Copyright (C) 2022 THL A29 Limited, a Tencent company. All rights reserved.
|
|
5
|
+
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
http://opensource.org/licenses/MIT
|
|
8
|
+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
|
|
9
|
+
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
|
|
10
|
+
specific language governing permissions and limitations under the License.
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
__version__ = "2.3.3"
|
|
@@ -23,5 +23,13 @@ stage:
|
|
|
23
23
|
max_age: 86400
|
|
24
24
|
allow_credential: true
|
|
25
25
|
|
|
26
|
+
{% if settings.BK_APIGW_GRANTED_APPS %}
|
|
27
|
+
grant_permissions:
|
|
28
|
+
{% for app_code in settings.BK_APIGW_GRANTED_APPS %}
|
|
29
|
+
- bk_app_code: {{ app_code }}
|
|
30
|
+
grant_dimension: "gateway"
|
|
31
|
+
{% endfor %}
|
|
32
|
+
{% endif %}
|
|
33
|
+
|
|
26
34
|
release:
|
|
27
35
|
comment: "auto release by bk-plugin-runtime"
|
|
@@ -27,6 +27,8 @@ class Command(BaseCommand):
|
|
|
27
27
|
call_command("sync_apigw_resources", file=resources_file_path)
|
|
28
28
|
print("[bk-plugin-framework]call sync_apigw_strategies with definition: %s" % definition_file_path)
|
|
29
29
|
call_command("sync_apigw_strategies", file=definition_file_path)
|
|
30
|
+
print("[bk-plugin-framework]call grant_apigw_permissions with definition: %s" % definition_file_path)
|
|
31
|
+
call_command("grant_apigw_permissions", file=definition_file_path)
|
|
30
32
|
|
|
31
33
|
# if getattr(settings, "BK_APIGW_CORS_ALLOW_ORIGINS"):
|
|
32
34
|
# strategy_cors_file_path = os.path.join(__file__.rsplit("/", 1)[0], "data/api-strategy-cors.yml")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "bk-plugin-framework"
|
|
3
|
-
version = "2.3.
|
|
3
|
+
version = "2.3.3"
|
|
4
4
|
description = "bk plugin python framework"
|
|
5
5
|
authors = ["Your Name <you@example.com>"]
|
|
6
6
|
license = "MIT"
|
|
@@ -10,7 +10,7 @@ python = "^3.8.0,<4.0"
|
|
|
10
10
|
pydantic = ">=1.0,<3"
|
|
11
11
|
werkzeug = ">=2.0.0, <4.0"
|
|
12
12
|
apigw-manager = {version = ">=1.0.6, <4", extras = ["extra"]}
|
|
13
|
-
bk-plugin-runtime = "2.1.
|
|
13
|
+
bk-plugin-runtime = "2.1.2"
|
|
14
14
|
jsonschema = ">=2.5.0,<5.0.0"
|
|
15
15
|
|
|
16
16
|
[tool.poetry.dev-dependencies]
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
"""
|
|
3
|
-
Tencent is pleased to support the open source community by making 蓝鲸智云 - PaaS平台 (BlueKing - PaaS System) available.
|
|
4
|
-
Copyright (C) 2022 THL A29 Limited, a Tencent company. All rights reserved.
|
|
5
|
-
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
|
|
6
|
-
You may obtain a copy of the License at
|
|
7
|
-
http://opensource.org/licenses/MIT
|
|
8
|
-
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
|
|
9
|
-
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
|
|
10
|
-
specific language governing permissions and limitations under the License.
|
|
11
|
-
"""
|
|
12
|
-
|
|
13
|
-
__version__ = "2.3.2rc0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/hub/__init__.py
RENAMED
|
File without changes
|
{bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/kit/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/kit/authentication.py
RENAMED
|
File without changes
|
{bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/kit/decorators.py
RENAMED
|
File without changes
|
{bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/kit/plugin.py
RENAMED
|
File without changes
|
|
File without changes
|
{bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/runtime/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/runtime/callbacker.py
RENAMED
|
File without changes
|
{bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/runtime/executor.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/runtime/loghub/log.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/services/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/utils/__init__.py
RENAMED
|
File without changes
|
{bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/utils/local.py
RENAMED
|
File without changes
|
|
File without changes
|
{bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/utils/module_load.py
RENAMED
|
File without changes
|
{bk_plugin_framework-2.3.2rc0 → bk_plugin_framework-2.3.3}/bk_plugin_framework/utils/validations.py
RENAMED
|
File without changes
|