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

feat(other): release v1.4.0 #4936 #4937

Merged
merged 1 commit into from
Jun 14, 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
2 changes: 1 addition & 1 deletion dbm-ui/backend/core/storages/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def create_bkrepo_access_token(self, path: str):
data = self.storage.client.create_bkrepo_access_token(paths=[path], expire_time=expire_time, permits=permits)
return {
"token": data[0]["token"],
"url": env.BKREPO_ENDPOINT_URL,
"url": env.BKREPO_FRONTEND_URL,
"project": env.BKREPO_PROJECT,
"repo": env.BKREPO_BUCKET,
"path": path,
Expand Down
8 changes: 7 additions & 1 deletion dbm-ui/backend/db_monitor/views/policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from django_filters import rest_framework as filters
from rest_framework import status
from rest_framework.decorators import action
from rest_framework.permissions import AllowAny
from rest_framework.response import Response

from backend.bk_web.swagger import common_swagger_auto_schema
Expand Down Expand Up @@ -292,7 +293,12 @@ def db_module_list(self, request, *args, **kwargs):
tags=[constants.SWAGGER_TAG],
request_body=serializers.AlarmCallBackDataSerializer,
)
@action(methods=["POST"], detail=False, serializer_class=serializers.AlarmCallBackDataSerializer)
@action(
methods=["POST"],
detail=False,
serializer_class=serializers.AlarmCallBackDataSerializer,
permission_classes=[AllowAny],
)
def callback(self, request, *args, **kwargs):
# 监控回调需要使用 Bearer Token 进行验证
# 从请求头中获取 Authorization 头
Expand Down
3 changes: 2 additions & 1 deletion dbm-ui/backend/env/bkrepo.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
BKREPO_PROJECT = get_type_env(key="BKREPO_PROJECT", _type=str)
# 默认文件存放仓库
BKREPO_BUCKET = get_type_env(key="BKREPO_PUBLIC_BUCKET", _type=str)
# 对象存储平台域名
# 对象存储平台后端地址
BKREPO_ENDPOINT_URL = get_type_env(key="BKREPO_ENDPOINT_URL", _type=str)
BKREPO_FRONTEND_URL = get_type_env(key="BKREPO_FRONTEND_URL", _type=str, default=BKREPO_ENDPOINT_URL)
# 备份系统相关系统变量
IBS_INFO_URL = get_type_env(key="IBS_INFO_URL", _type=str)
IBS_INFO_KEY = get_type_env(key="IBS_INFO_KEY", _type=str)
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 @@ -79,5 +79,5 @@ dependencies:
description: A Helm chart for bk-dbm
name: bk-dbm
type: application
version: 1.4.0-alpha.57
appVersion: 1.4.0-alpha.57
version: 1.4.0-alpha.58
appVersion: 1.4.0-alpha.58
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.4.0-alpha.913
appVersion: 1.4.0-alpha.919
description: A Helm chart for dbm
name: dbm
type: application
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ data:
spiderRulePath: "spider_rule.yaml"

{{- if index .Values "db-simulation" "simulationNodeLables" }}
simulationNodeLables: "{{ index .Values "db-simulation" "simulationNodeLables" }}"
simulationNodeLables:
- key: "{{ index .Values "db-simulation" "simulationNodeLables" "key" }}"
value: "{{ index .Values "db-simulation" "simulationNodeLables" "value" }}"
{{- end }}

{{- if index .Values "db-simulation" "simulationtaintLables" }}
simulationtaintLables:: "{{ index .Values "db-simulation" "simulationtaintLables" }}"
simulationtaintLables:
- key: "{{ index .Values "db-simulation" "simulationtaintLables" "key" }}"
value: "{{ index .Values "db-simulation" "simulationtaintLables" "value" }}"
{{- end }}
Expand Down
Loading