Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(backend): helm整包更新 #6855 #6856

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions dbm-ui/backend/flow/utils/cc_manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,8 @@ def add_label_for_service_instance(self, bk_instance_ids: list, labels_dict: dic
"bk_biz_id": self.hosting_biz_id,
"instance_ids": bk_instance_ids,
"labels": labels_dict,
}
},
use_admin=True,
)

def delete_service_instance(self, bk_instance_ids: List[int]):
Expand All @@ -416,7 +417,8 @@ def delete_service_instance(self, bk_instance_ids: List[int]):
{
"bk_biz_id": self.hosting_biz_id,
"service_instance_ids": bk_instance_ids,
}
},
use_admin=True,
)
except Exception as error:
logger.warning(error)
Expand Down
4 changes: 2 additions & 2 deletions dbm-ui/backend/iam_app/handlers/drf_perm/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ def instance_id_getter(self, request, view):
if is_all_pkg.pop():
self.actions = [ActionEnum.PACKAGE_MANAGE]
self.resource_meta = ResourceEnum.DBTYPE
db_types = set([path.split("/")[0] for path in file_path_list])
db_types = set([path.strip("/").split("/")[0] for path in file_path_list])
return list(db_types)
else:
self.actions = [ActionEnum.DB_MANAGE]
self.resource_meta = ResourceEnum.BUSINESS
bk_biz_ids = set([int(path.split("/")[2]) for path in file_path_list])
bk_biz_ids = set([int(path.strip("/").split("/")[2]) for path in file_path_list])
return list(bk_biz_ids)
except Exception:
logger.error(_("文件操作路径{}不合法,请联系管理员").format(file_path_list))
Expand Down
4 changes: 2 additions & 2 deletions dbm-ui/backend/ticket/builders/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@ class TicketFlowBuilder:
resource_apply_builder: ResourceApplyParamBuilder = None
resource_batch_apply_builder: ResourceApplyParamBuilder = None

# inner flow互斥的重试类型,默认为自动重试
retry_type: FlowRetryType = FlowRetryType.AUTO_RETRY
# inner flow互斥的重试类型,默认为手动重试
retry_type: FlowRetryType = FlowRetryType.MANUAL_RETRY
# 默认是否需要审批,人工确认。后续用于初始化单据配置表
default_need_itsm: bool = True
default_need_manual_confirm: bool = True
Expand Down
4 changes: 2 additions & 2 deletions helm-charts/bk-dbm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,5 @@ dependencies:
description: A Helm chart for bk-dbm
name: bk-dbm
type: application
version: 1.5.0-alpha.12
appVersion: 1.5.0-alpha.12
version: 1.5.0-alpha.13
appVersion: 1.5.0-alpha.13
2 changes: 1 addition & 1 deletion helm-charts/bk-dbm/charts/db-simulation/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
appVersion: 0.0.1-alpha.69
appVersion: 0.0.1-alpha.70
description: A Helm chart for Kubernetes
name: db-simulation
type: application
Expand Down
2 changes: 1 addition & 1 deletion helm-charts/bk-dbm/charts/dbm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
appVersion: 1.5.0-alpha.509
appVersion: 1.5.0-alpha.517
description: A Helm chart for dbm
name: dbm
type: application
Expand Down
Loading