Skip to content

Commit

Permalink
feat: 添加 BKPAAS_NODEMAN_URL 等内置环境变量&修改开发框架文档路径 (#1597)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiayuan929 authored Sep 12, 2024
1 parent 4e10693 commit b09396f
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 5 deletions.
8 changes: 8 additions & 0 deletions apiserver/paasng/conf.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,14 @@
# BK_TURBO_URL: ''
## 蓝盾流水线服务地址
# BK_PIPELINE_URL: ''
## 蓝鲸节点管理平台地址
# BK_NODEMAN_URL: ''
## 蓝鲸容器管理平台地址
# BK_BCS_URL: ''
## 蓝鲸服务配置中心地址
# BK_BSCP_URL: ''
## 蓝鲸审计中心地址
# BK_AUDIT_URL: ''
## 其他蓝鲸服务地址,格式如:{"BK_SOPS_URL": "http://localhost:8080"}
# BK_PLATFORM_URLS: {}

Expand Down
2 changes: 1 addition & 1 deletion apiserver/paasng/fixtures/smart_advisor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
title_en: "Guide to building a local Python development environment",
short_description_zh_cn: '',
short_description_en: '',
location: '{doc_url_prefix}/markdown/PaaS/DevelopTools/BaseGuide/topics/company_tencent/python_framework_usage#python',
location: '{doc_url_prefix}/markdown/PaaS/DevelopTools/BaseGuide/quickstart/python/python_setup_dev',
affinity_tags: '["app-pl:python","plat-panel:app_created"]', anti_affinity_tags: '[]',
priority: 1, created: !!timestamp '2020-08-20 11:08:51+00:00' }
- model: smart_advisor.documentarylink
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ def generate_env_vars_for_bk_platform(config_vars_prefix: str) -> Dict[str, str]
"CODECC_URL": settings.BK_CODECC_URL,
"TURBO_URL": settings.BK_TURBO_URL,
"PIPELINE_URL": settings.BK_PIPELINE_URL,
"NODEMAN_URL": settings.BK_NODEMAN_URL,
"BCS_URL": settings.BK_BCS_URL,
"BSCP_URL": settings.BK_BSCP_URL,
"AUDIT_URL": settings.BK_AUDIT_URL,
"SHARED_RES_URL": settings.BK_SHARED_RES_URL,
}
# 系统环境变量需要添加统一的前缀
Expand Down
4 changes: 4 additions & 0 deletions apiserver/paasng/paasng/settings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,10 @@ def _build_file_handler(log_path: Path, filename: str, format: str) -> Dict:
BK_CODECC_URL = settings.get("BK_CODECC_URL", "")
BK_TURBO_URL = settings.get("BK_TURBO_URL", "")
BK_PIPELINE_URL = settings.get("BK_PIPELINE_URL", "")
BK_NODEMAN_URL = settings.get("BK_NODEMAN_URL", "")
BK_BCS_URL = settings.get("BK_BCS_URL", "")
BK_BSCP_URL = settings.get("BK_BSCP_URL", "")
BK_AUDIT_URL = settings.get("BK_AUDIT_URL", "")
# 蓝鲸产品 title/footer/name/logo 等资源自定义配置的路径
BK_SHARED_RES_URL = settings.get("BK_SHARED_RES_URL", "")

Expand Down
4 changes: 2 additions & 2 deletions webfe/package_vue/static/json/paas_static.ce.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export const PLATFORM_CONFIG = {
API_HELP: BK_APIGW_DOC_URL,

// Python 开发框架(blueapps)- 框架文档
PYTHON_FRAMEWORK: DOCS_URL_PREFIX + '/topics/company_tencent/python_framework_usage',
PYTHON_FRAMEWORK: BK_DOCS_URL_PREFIX + '/markdown/PaaS/DevelopTools/SaaSGuide/DevBasics/README.md',

// Go 开发框架- 快速开始
GO_START: DOCS_URL_PREFIX + '/quickstart/golang/golang_preparations',
Expand Down Expand Up @@ -549,7 +549,7 @@ export const PAAS_STATIC_CONFIG = {
"list": [
{
"title": staticI18n.$t("如何使用蓝鲸开发框架?"),
"url": DOCS_URL_PREFIX + "/topics/company_tencent/python_framework_usage",
"url": BK_DOCS_URL_PREFIX + "/markdown/PaaS/DevelopTools/SaaSGuide/DevBasics/README.md",
"info": staticI18n.$t("集成登录鉴权、安全防护、权限控制等基础模块,更有后台任务、云API调用等样例供您参考")
},
{
Expand Down
4 changes: 2 additions & 2 deletions webfe/package_vue/static/json/paas_static.ee.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export const PLATFORM_CONFIG = {
API_HELP: BK_APIGW_DOC_URL,

// Python 开发框架(blueapps)- 框架文档
PYTHON_FRAMEWORK: DOCS_URL_PREFIX + '/topics/company_tencent/python_framework_usage',
PYTHON_FRAMEWORK: BK_DOCS_URL_PREFIX + '/markdown/PaaS/DevelopTools/SaaSGuide/DevBasics/README.md',

// Go 开发框架- 快速开始
GO_START: DOCS_URL_PREFIX + '/quickstart/golang/golang_preparations',
Expand Down Expand Up @@ -557,7 +557,7 @@ export const PAAS_STATIC_CONFIG = {
"list": [
{
"title": staticI18n.$t("如何使用蓝鲸开发框架?"),
"url": DOCS_URL_PREFIX + "/topics/company_tencent/python_framework_usage",
"url": BK_DOCS_URL_PREFIX + "/markdown/PaaS/DevelopTools/SaaSGuide/DevBasics/README.md",
"info": staticI18n.$t("集成登录鉴权、安全防护、权限控制等基础模块,更有后台任务、云API调用等样例供您参考")
},
{
Expand Down

0 comments on commit b09396f

Please sign in to comment.