Skip to content

Commit bd1281f

Browse files
authored
chore(svc-bkrepo): update copyright entity in source file headers (#2888)
1 parent d897e1e commit bd1281f

34 files changed

Lines changed: 510 additions & 546 deletions

svc-bkrepo/manage.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1+
#!/usr/bin/env python
12
# -*- coding: utf-8 -*-
2-
"""
3-
TencentBlueKing is pleased to support the open source community by making
4-
蓝鲸智云 - PaaS 平台 (BlueKing - PaaS System) available.
5-
Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
6-
Licensed under the MIT License (the "License"); you may not use this file except
7-
in compliance with the License. You may obtain a copy of the License at
3+
# TencentBlueKing is pleased to support the open source community by making
4+
# 蓝鲸智云 - PaaS 平台 (BlueKing - PaaS System) available.
5+
# Copyright (C) Tencent. All rights reserved.
6+
# Licensed under the MIT License (the "License"); you may not use this file except
7+
# in compliance with the License. You may obtain a copy of the License at
8+
#
9+
# http://opensource.org/licenses/MIT
10+
#
11+
# Unless required by applicable law or agreed to in writing, software distributed under
12+
# the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13+
# either express or implied. See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
# We undertake not to change the open source license (MIT license) applicable
17+
# to the current version of the project delivered to anyone in the future.
818

9-
http://opensource.org/licenses/MIT
10-
11-
Unless required by applicable law or agreed to in writing, software distributed under
12-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13-
either express or implied. See the License for the specific language governing permissions and
14-
limitations under the License.
15-
16-
We undertake not to change the open source license (MIT license) applicable
17-
to the current version of the project delivered to anyone in the future.
18-
"""
1919
import os
2020
import sys
2121

svc-bkrepo/start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
##
33
## TencentBlueKing is pleased to support the open source community by making
44
## 蓝鲸智云 - PaaS 平台 (BlueKing - PaaS System) available.
5-
## Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
5+
## Copyright (C) Tencent. All rights reserved.
66
## Licensed under the MIT License (the "License"); you may not use this file except
77
## in compliance with the License. You may obtain a copy of the License at
88
##

svc-bkrepo/static/js/bk-magic-vue.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

svc-bkrepo/svc_bk_repo/__init__.py

100755100644
Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
# -*- coding: utf-8 -*-
2-
"""
3-
TencentBlueKing is pleased to support the open source community by making
4-
蓝鲸智云 - PaaS 平台 (BlueKing - PaaS System) available.
5-
Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
6-
Licensed under the MIT License (the "License"); you may not use this file except
7-
in compliance with the License. You may obtain a copy of the License at
8-
9-
http://opensource.org/licenses/MIT
10-
11-
Unless required by applicable law or agreed to in writing, software distributed under
12-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13-
either express or implied. See the License for the specific language governing permissions and
14-
limitations under the License.
15-
16-
We undertake not to change the open source license (MIT license) applicable
17-
to the current version of the project delivered to anyone in the future.
18-
"""
2+
# TencentBlueKing is pleased to support the open source community by making
3+
# 蓝鲸智云 - PaaS 平台 (BlueKing - PaaS System) available.
4+
# Copyright (C) Tencent. All rights reserved.
5+
# Licensed under the MIT License (the "License"); you may not use this file except
6+
# in compliance with the License. You may obtain a copy of the License at
7+
#
8+
# http://opensource.org/licenses/MIT
9+
#
10+
# Unless required by applicable law or agreed to in writing, software distributed under
11+
# the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
12+
# either express or implied. See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
# We undertake not to change the open source license (MIT license) applicable
16+
# to the current version of the project delivered to anyone in the future.

svc-bkrepo/svc_bk_repo/middleware.py

100755100644
Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
# -*- coding: utf-8 -*-
2-
"""
3-
TencentBlueKing is pleased to support the open source community by making
4-
蓝鲸智云 - PaaS 平台 (BlueKing - PaaS System) available.
5-
Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
6-
Licensed under the MIT License (the "License"); you may not use this file except
7-
in compliance with the License. You may obtain a copy of the License at
2+
# TencentBlueKing is pleased to support the open source community by making
3+
# 蓝鲸智云 - PaaS 平台 (BlueKing - PaaS System) available.
4+
# Copyright (C) Tencent. All rights reserved.
5+
# Licensed under the MIT License (the "License"); you may not use this file except
6+
# in compliance with the License. You may obtain a copy of the License at
7+
#
8+
# http://opensource.org/licenses/MIT
9+
#
10+
# Unless required by applicable law or agreed to in writing, software distributed under
11+
# the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
12+
# either express or implied. See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
# We undertake not to change the open source license (MIT license) applicable
16+
# to the current version of the project delivered to anyone in the future.
817

9-
http://opensource.org/licenses/MIT
10-
11-
Unless required by applicable law or agreed to in writing, software distributed under
12-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13-
either express or implied. See the License for the specific language governing permissions and
14-
limitations under the License.
15-
16-
We undertake not to change the open source license (MIT license) applicable
17-
to the current version of the project delivered to anyone in the future.
18-
"""
1918
from typing import Dict
2019

2120
from django.conf import settings
@@ -24,15 +23,15 @@
2423

2524

2625
def context_processors(request) -> Dict:
27-
SVC_LOGO_URL = ""
26+
svc_logo_url = ""
2827
svc = Service.objects.first()
2928
if svc:
30-
SVC_LOGO_URL = svc.logo
29+
svc_logo_url = svc.logo
3130

3231
return {
3332
"STATIC_URL": settings.STATIC_URL,
3433
"REMOTE_STATIC_URL": settings.REMOTE_STATIC_URL,
35-
"SVC_LOGO_URL": SVC_LOGO_URL,
36-
'csrf_token': get_token(request),
37-
'settings': settings,
34+
"SVC_LOGO_URL": svc_logo_url,
35+
"csrf_token": get_token(request),
36+
"settings": settings,
3837
}
Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
# -*- coding: utf-8 -*-
2-
"""
3-
TencentBlueKing is pleased to support the open source community by making
4-
蓝鲸智云 - PaaS 平台 (BlueKing - PaaS System) available.
5-
Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
6-
Licensed under the MIT License (the "License"); you may not use this file except
7-
in compliance with the License. You may obtain a copy of the License at
8-
9-
http://opensource.org/licenses/MIT
10-
11-
Unless required by applicable law or agreed to in writing, software distributed under
12-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13-
either express or implied. See the License for the specific language governing permissions and
14-
limitations under the License.
15-
16-
We undertake not to change the open source license (MIT license) applicable
17-
to the current version of the project delivered to anyone in the future.
18-
"""
2+
# TencentBlueKing is pleased to support the open source community by making
3+
# 蓝鲸智云 - PaaS 平台 (BlueKing - PaaS System) available.
4+
# Copyright (C) Tencent. All rights reserved.
5+
# Licensed under the MIT License (the "License"); you may not use this file except
6+
# in compliance with the License. You may obtain a copy of the License at
7+
#
8+
# http://opensource.org/licenses/MIT
9+
#
10+
# Unless required by applicable law or agreed to in writing, software distributed under
11+
# the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
12+
# either express or implied. See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
# We undertake not to change the open source license (MIT license) applicable
16+
# to the current version of the project delivered to anyone in the future.

svc-bkrepo/svc_bk_repo/monitoring/apps.py

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
# -*- coding: utf-8 -*-
2-
"""
3-
TencentBlueKing is pleased to support the open source community by making
4-
蓝鲸智云 - PaaS 平台 (BlueKing - PaaS System) available.
5-
Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
6-
Licensed under the MIT License (the "License"); you may not use this file except
7-
in compliance with the License. You may obtain a copy of the License at
2+
# TencentBlueKing is pleased to support the open source community by making
3+
# 蓝鲸智云 - PaaS 平台 (BlueKing - PaaS System) available.
4+
# Copyright (C) Tencent. All rights reserved.
5+
# Licensed under the MIT License (the "License"); you may not use this file except
6+
# in compliance with the License. You may obtain a copy of the License at
7+
#
8+
# http://opensource.org/licenses/MIT
9+
#
10+
# Unless required by applicable law or agreed to in writing, software distributed under
11+
# the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
12+
# either express or implied. See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
# We undertake not to change the open source license (MIT license) applicable
16+
# to the current version of the project delivered to anyone in the future.
817

9-
http://opensource.org/licenses/MIT
10-
11-
Unless required by applicable law or agreed to in writing, software distributed under
12-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13-
either express or implied. See the License for the specific language governing permissions and
14-
limitations under the License.
15-
16-
We undertake not to change the open source license (MIT license) applicable
17-
to the current version of the project delivered to anyone in the future.
18-
"""
1918
from django.apps import AppConfig
2019

2120

svc-bkrepo/svc_bk_repo/monitoring/jobs.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
# -*- coding: utf-8 -*-
2-
"""
3-
TencentBlueKing is pleased to support the open source community by making
4-
蓝鲸智云 - PaaS 平台 (BlueKing - PaaS System) available.
5-
Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
6-
Licensed under the MIT License (the "License"); you may not use this file except
7-
in compliance with the License. You may obtain a copy of the License at
8-
9-
http://opensource.org/licenses/MIT
10-
11-
Unless required by applicable law or agreed to in writing, software distributed under
12-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13-
either express or implied. See the License for the specific language governing permissions and
14-
limitations under the License.
15-
16-
We undertake not to change the open source license (MIT license) applicable
17-
to the current version of the project delivered to anyone in the future.
18-
"""
2+
# TencentBlueKing is pleased to support the open source community by making
3+
# 蓝鲸智云 - PaaS 平台 (BlueKing - PaaS System) available.
4+
# Copyright (C) Tencent. All rights reserved.
5+
# Licensed under the MIT License (the "License"); you may not use this file except
6+
# in compliance with the License. You may obtain a copy of the License at
7+
#
8+
# http://opensource.org/licenses/MIT
9+
#
10+
# Unless required by applicable law or agreed to in writing, software distributed under
11+
# the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
12+
# either express or implied. See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
# We undertake not to change the open source license (MIT license) applicable
16+
# to the current version of the project delivered to anyone in the future.
17+
1918
import atexit
2019
import errno
2120
import functools
@@ -27,6 +26,7 @@
2726
from django.conf import settings
2827
from filelock import FileLock
2928
from paas_service.models import Plan, ServiceInstance
29+
3030
from svc_bk_repo.monitoring.models import RepoQuotaStatistics
3131
from svc_bk_repo.vendor.helper import BKGenericRepoManager
3232

@@ -47,7 +47,7 @@ def process_exists(pid: int):
4747
# in the process group of the calling process.
4848
# On certain systems 0 is a valid PID but we have no way
4949
# to know that in a portable fashion.
50-
raise ValueError('invalid PID 0')
50+
raise ValueError("invalid PID 0")
5151
try:
5252
os.kill(pid, 0)
5353
except OSError as err:
@@ -93,7 +93,7 @@ def get_repo_manager(plan_id: str):
9393
return manager
9494

9595

96-
@scheduler.scheduled_job('interval', minutes=settings.BKREPO_COLLECT_INTERVAL_MINUTES)
96+
@scheduler.scheduled_job("interval", minutes=settings.BKREPO_COLLECT_INTERVAL_MINUTES)
9797
def update_bkrepo_quota_statistics():
9898
"""Update bkrepo quota statistics periodically"""
9999
logger.info("Starting update bkrepo quota.")

svc-bkrepo/svc_bk_repo/monitoring/metrics.py

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
# -*- coding: utf-8 -*-
2-
"""
3-
TencentBlueKing is pleased to support the open source community by making
4-
蓝鲸智云 - PaaS 平台 (BlueKing - PaaS System) available.
5-
Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
6-
Licensed under the MIT License (the "License"); you may not use this file except
7-
in compliance with the License. You may obtain a copy of the License at
8-
9-
http://opensource.org/licenses/MIT
10-
11-
Unless required by applicable law or agreed to in writing, software distributed under
12-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13-
either express or implied. See the License for the specific language governing permissions and
14-
limitations under the License.
15-
16-
We undertake not to change the open source license (MIT license) applicable
17-
to the current version of the project delivered to anyone in the future.
18-
"""
2+
# TencentBlueKing is pleased to support the open source community by making
3+
# 蓝鲸智云 - PaaS 平台 (BlueKing - PaaS System) available.
4+
# Copyright (C) Tencent. All rights reserved.
5+
# Licensed under the MIT License (the "License"); you may not use this file except
6+
# in compliance with the License. You may obtain a copy of the License at
7+
#
8+
# http://opensource.org/licenses/MIT
9+
#
10+
# Unless required by applicable law or agreed to in writing, software distributed under
11+
# the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
12+
# either express or implied. See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
# We undertake not to change the open source license (MIT license) applicable
16+
# to the current version of the project delivered to anyone in the future.
17+
1918
import datetime
2019

2120
from prometheus_client.core import CollectorRegistry, GaugeMetricFamily

svc-bkrepo/svc_bk_repo/monitoring/migrations/0001_initial.py

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
# -*- coding: utf-8 -*-
2-
"""
3-
TencentBlueKing is pleased to support the open source community by making
4-
蓝鲸智云 - PaaS 平台 (BlueKing - PaaS System) available.
5-
Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
6-
Licensed under the MIT License (the "License"); you may not use this file except
7-
in compliance with the License. You may obtain a copy of the License at
2+
# TencentBlueKing is pleased to support the open source community by making
3+
# 蓝鲸智云 - PaaS 平台 (BlueKing - PaaS System) available.
4+
# Copyright (C) Tencent. All rights reserved.
5+
# Licensed under the MIT License (the "License"); you may not use this file except
6+
# in compliance with the License. You may obtain a copy of the License at
7+
#
8+
# http://opensource.org/licenses/MIT
9+
#
10+
# Unless required by applicable law or agreed to in writing, software distributed under
11+
# the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
12+
# either express or implied. See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
# We undertake not to change the open source license (MIT license) applicable
16+
# to the current version of the project delivered to anyone in the future.
817

9-
http://opensource.org/licenses/MIT
10-
11-
Unless required by applicable law or agreed to in writing, software distributed under
12-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13-
either express or implied. See the License for the specific language governing permissions and
14-
limitations under the License.
15-
16-
We undertake not to change the open source license (MIT license) applicable
17-
to the current version of the project delivered to anyone in the future.
18-
"""
1918
# Generated by Django 3.2.12 on 2022-06-30 03:12
2019

2120
from django.db import migrations, models

0 commit comments

Comments
 (0)