Skip to content

Commit

Permalink
feat: 权限中心英文名标准化 (closed #2380)
Browse files Browse the repository at this point in the history
  • Loading branch information
wyyalt committed Aug 9, 2024
1 parent f919019 commit be2316e
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
26 changes: 26 additions & 0 deletions apps/iam_migration/migrations/0009_bk_nodeman_202408091509.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# -*- coding: utf-8 -*-
"""
TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-节点管理(BlueKing-BK-NODEMAN) available.
Copyright (C) 2017-2022 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at https://opensource.org/licenses/MIT
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
"""
from django.db import migrations
from iam.contrib.iam_migration.migrator import IAMMigrator


def forward_func(apps, schema_editor):

migrator = IAMMigrator(Migration.migration_json)
migrator.migrate()


class Migration(migrations.Migration):
migration_json = "0009_bk_nodeman_20240809_1509_iam.json"

dependencies = [("iam_migration", "0008_bk_nodeman_202305121500")]

operations = [migrations.RunPython(forward_func)]
17 changes: 17 additions & 0 deletions support-files/bkiam/0009_bk_nodeman_20240809_1509_iam.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"system_id":"bk_nodeman",
"operations":[
{
"operation": "upsert_system",
"data": {
"id": "bk_nodeman",
"name": "节点管理",
"name_en": "NodeMan",
"description": "",
"description_en": "",
"clients": "bk_nodeman,bk_bknodeman",
"provider_config": {"host": "http://__BK_NODEMAN_API_ADDR__", "auth": "basic"}
}
}
]
}

0 comments on commit be2316e

Please sign in to comment.