Skip to content

Commit

Permalink
docs: v1.7.0-alpha.1 版本日志 (#1188)
Browse files Browse the repository at this point in the history
* docs: v1.7.0 版本日志

* docs: v1.7.0-alpha.1
  • Loading branch information
chenjr15 authored Nov 28, 2024
1 parent bbcca76 commit 285d97e
Show file tree
Hide file tree
Showing 15 changed files with 161 additions and 201 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### 描述

- 该接口提供版本:v9.9.9+。
- 该接口提供版本:v1.7.0+。
- 该接口所需权限:负载均衡操作。
- 该接口功能描述:负载均衡excel导入,上传文件接口。

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### 描述

- 该接口提供版本:v9.9.9+。
- 该接口提供版本:v1.7.0+。
- 该接口所需权限:负载均衡操作。
- 该接口功能描述:负载均衡excel导入,提交接口。

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### 描述

- 该接口提供版本:v9.9.9+。
- 该接口提供版本:v1.7.0+。
- 该接口所需权限:负载均衡操作。
- 该接口功能描述:负载均衡excel导入,校验接口。

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### 描述

- 该接口提供版本:v9.9.9+。
- 该接口提供版本:v1.7.0+。
- 该接口所需权限:业务访问。
- 该接口功能描述:业务下同步指定账号下指定资源。

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### 描述

- 该接口提供版本:v9.9.9+。
- 该接口提供版本:v1.7.0+。
- 该接口所需权限:账号访问。
- 该接口功能描述:同步指定账号下指定资源。

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### 描述

- 该接口提供版本:v9.9.9+。
- 该接口提供版本:v1.7.0+。
- 该接口所需权限:无。
- 该接口功能描述:获取指定模板文件。

Expand Down
14 changes: 14 additions & 0 deletions docs/support-file/changelog/ch/v1.7.0_2024-11-25.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
**V1.7.0 版本更新日志**

# 新增
- [新增] 腾讯云负载均衡增加单业务、单资源同步功能
- [新增] 腾讯云负载均衡支持批量导入
- [新增] 腾讯云负载均衡跳过传统型负载均衡监听器支持
- [新增] 腾讯云安全组增加标签、云上创建时间、更新时间支持
- [新增] 华为云账单支持分摊根账号支持费
- [新增] 支持腾讯云负载均衡不同地域有相同资源id

# 优化
- [优化] 腾讯云负载均衡优化同步性能


14 changes: 14 additions & 0 deletions docs/support-file/changelog/en/v1.7.0_2024-11-25.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
**Version 1.7.0 Release Notes**


# Features
- [Feature] Added single biz and single resource synchronization feature for Tencent Cloud Load Balancer
- [Feature] Tencent Cloud Load Balancer now supports batch import
- [Feature] Tencent Cloud Load Balancer skips traditional CLB listener support
- [Feature] Added tag, cloud creation time, and update time support for Tencent Cloud Security Groups
- [Feature] Huawei Cloud Billing now supports allocation of root account support fees
- [Feature] Support for Tencent Cloud Load Balancer to have the same resource ID in different regions

# Upgrade
- [Upgrade] Tencent Cloud Load Balancer synchronization performance optimized

4 changes: 2 additions & 2 deletions docs/support-file/helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: bk-hcm
apiVersion: v2
description: A full stack chart for HCM Enterprise products.
type: application
version: 1.0.22
appVersion: v1.6.11
version: 1.0.23-alpha.1
appVersion: v1.7.0-alpha.1

dependencies:
- name: common
Expand Down
2 changes: 1 addition & 1 deletion docs/support-file/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ image:
registry: hub.bktencent.com
pullPolicy: IfNotPresent
pullSecrets: []
tag: 1.6.11
tag: 1.7.0-alpha.1

serviceAccount:
create: true
Expand Down
84 changes: 84 additions & 0 deletions scripts/sql/0028_20241128_task_management.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
/*
* TencentBlueKing is pleased to support the open source community by making
* 蓝鲸智云 - 混合云管理平台 (BlueKing - Hybrid Cloud Management System) available.
* Copyright (C) 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 http://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.
*
* We undertake not to change the open source license (MIT license) applicable
*
* to the current version of the project delivered to anyone in the future.
*/

/*
SQLVER=0028,HCMVER=v1.7.0
Notes:
1. 添加任务管理表task_management
2. 添加任务详情表task_detail
*/

START TRANSACTION;

-- 1. 任务管理表
create table if not exists `task_management`
(
`id` varchar(64) not null,
`bk_biz_id` bigint not null,
`source` varchar(16) not null,
`vendors` json not null,
`state` varchar(16) not null,
`account_ids` json not null,
`resource` varchar(16) not null,
`operations` json not null,
`flow_ids` json default NULL,
`extension` json default NULL,
`creator` varchar(64) not null,
`reviser` varchar(64) not null,
`created_at` timestamp not null default current_timestamp,
`updated_at` timestamp not null default current_timestamp on update current_timestamp,
primary key (`id`),
index `idx_state` (`state`)
) engine = innodb
default charset = utf8mb4
collate utf8mb4_bin comment ='任务管理表';

-- 2. 任务详情表
create table if not exists `task_detail`
(
`id` varchar(64) not null,
`bk_biz_id` bigint not null,
`task_management_id` varchar(64) not null,
`flow_id` varchar(64) default '',
`task_action_ids` json default NULL,
`operation` varchar(64) not null,
`param` json not null,
`state` varchar(16) not null,
`reason` varchar(1024) default '',
`extension` json default NULL,
`creator` varchar(64) not null,
`reviser` varchar(64) not null,
`result` json default NULL,
`created_at` timestamp not null default current_timestamp,
`updated_at` timestamp not null default current_timestamp on update current_timestamp,
primary key (`id`),
index `idx_task_management_id` (`task_management_id`)
) engine = innodb
default charset = utf8mb4
collate utf8mb4_bin comment ='任务详情表';

insert into id_generator(`resource`, `max_id`)
values ('task_management', '0'),
('task_detail', '0');

CREATE OR REPLACE VIEW `hcm_version`(`hcm_ver`, `sql_ver`) AS
SELECT 'v1.7.0' as `hcm_ver`, '0028' as `sql_ver`;

COMMIT
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

/*
SQLVER=9999,HCMVER=v9.9.9
SQLVER=0029,HCMVER=v1.7.0
Notes:
1. 修改负载均衡表唯一键索引为cloud_id, vendor, region
Expand All @@ -36,53 +36,85 @@ START TRANSACTION;
-- 1. 修改负载均衡表唯一键索引为cloud_id, vendor, region
alter table load_balancer
add constraint idx_uk_cloud_id_vendor_region unique (cloud_id, vendor, region);
alter table load_balancer drop key idx_uk_cloud_id_vendor;
alter table load_balancer
drop key idx_uk_cloud_id_vendor;


-- 2. 负载均衡监听器表新增region字段
-- 2. 负载均衡监听器表新增region字段, 并补充索引 (vendor, account_id, bk_biz_id, cloud_lb_id)
alter table load_balancer_listener
add column region varchar(20) default '' not null after `default_domain`;

-- 3. 负载均衡监听器表修改唯一键索引为(cloud_id, vendor, region),并增加(lb_id,cloud_id)索引

-- 3. 负载均衡监听器表 修改唯一键索引为(cloud_id, vendor, region),并增加(lb_id,cloud_id)索引
alter table load_balancer_listener
add constraint idx_uk_cloud_id_vendor_region unique (cloud_id, vendor, region);
alter table load_balancer_listener
drop key idx_uk_cloud_id_vendor;
alter table load_balancer_listener
add index idx_lb_id_cloud_id (lb_id, cloud_id, id);

alter table load_balancer_listener
drop index idx_lb_id;
add index idx_vendor_account_id_bk_biz_id_cloud_lb_id (vendor, account_id, bk_biz_id, cloud_lb_id);

-- 4. 负载均衡目标组表修改唯一键索引为cloud_id, vendor, region
alter table load_balancer_target_group
add constraint idx_uk_cloud_id_vendor_region unique (cloud_id, vendor, region);
alter table load_balancer_target_group
drop key idx_uk_cloud_id_vendor;

alter table load_balancer_target_group
add index idx_bk_biz_id (bk_biz_id, id);

-- 5. 腾讯云URL规则表新增region字段
alter table tcloud_lb_url_rule
add column region varchar(20) default '' not null after `cloud_target_group_id`;

-- 6. 腾讯云URL规则表修改唯一键索引为cloud_id, vendor, region
-- 6. 腾讯云URL规则表修改唯一键索引为cloud_id, vendor, region, 增加索引(lbl_id, rule_type)、(lb_id, rule_type)
alter table tcloud_lb_url_rule
add constraint idx_uk_cloud_id_cloud_lbl_id_region unique (cloud_id, cloud_lbl_id, region);
alter table tcloud_lb_url_rule
drop key idx_uk_cloud_id_lbl_id;

-- 7. 负载均衡target表新增target_group_region
alter table tcloud_lb_url_rule
add index idx_cloud_lbl_id_rule_type (lbl_id, rule_type);
alter table tcloud_lb_url_rule
add index idx_lb_id_rule_type (lb_id, rule_type);

-- 7. 负载均衡target表新增target_group_region,并增加索引target_group_id
alter table load_balancer_target
add column target_group_region varchar(20) default '' not null after `inst_name`;

alter table load_balancer_target
add index idx_target_group_id (target_group_id, id);

-- 8. 负载均衡target表修改唯一键索引为cloud_target_group_id, ip, port, cloud_inst_id, target_group_region
alter table load_balancer_target
add constraint idx_uk_cloud_target_group_id_ip_port_target_group_region
unique (cloud_target_group_id, ip, port, target_group_region);
alter table load_balancer_target
drop key idx_uk_cloud_target_group_id_ip_port_cloud_inst_id;

-- 9. 负载均衡表新增tags字段
alter table load_balancer
add tags JSON null after cloud_expired_time;

-- 10. 目标组规则关系表 target_group_listener_rule_rel 增加索引
alter table target_group_listener_rule_rel
add index idx_listener_rule_id (listener_rule_id);
alter table target_group_listener_rule_rel
add index idx_lb_id_cloud_rule_id (lb_id, cloud_listener_rule_id);
alter table target_group_listener_rule_rel
add index idx_lb_id_cloud_lbl_id (lb_id, cloud_lbl_id, id);
alter table target_group_listener_rule_rel
add index idx_lbl_id (lbl_id, id);

-- 11. audit审计表增加业务id索引
alter table audit
add index idx_bk_biz_id (bk_biz_id, id);


CREATE OR REPLACE VIEW `hcm_version`(`hcm_ver`, `sql_ver`) AS
SELECT 'v9.9.9' as `hcm_ver`, '9999' as `sql_ver`;
SELECT 'v1.7.0' as `hcm_ver`, '0029' as `sql_ver`;


COMMIT
84 changes: 0 additions & 84 deletions scripts/sql/9999_20240910_1700_task.sql

This file was deleted.

Loading

0 comments on commit 285d97e

Please sign in to comment.