Skip to content

Commit

Permalink
Merge branch 'master' into feat_atomOutput
Browse files Browse the repository at this point in the history
  • Loading branch information
lockiechen authored Aug 22, 2024
2 parents 80cf64e + 5fd8da8 commit e4d1b9e
Show file tree
Hide file tree
Showing 389 changed files with 16,687 additions and 2,811 deletions.
2 changes: 1 addition & 1 deletion docs/overview/db/devops_ci_artifactory.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**数据库名:** devops_ci_artifactory

**文档版本:** 1.0.2
**文档版本:** 1.0.4

**文档描述:** devops_ci_artifactory 的数据库文档
| 表名 | 说明 |
Expand Down
2 changes: 1 addition & 1 deletion docs/overview/db/devops_ci_auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**数据库名:** devops_ci_auth

**文档版本:** 1.0.2
**文档版本:** 1.0.4

**文档描述:** devops_ci_auth 的数据库文档
| 表名 | 说明 |
Expand Down
2 changes: 1 addition & 1 deletion docs/overview/db/devops_ci_dispatch.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**数据库名:** devops_ci_dispatch

**文档版本:** 1.0.2
**文档版本:** 1.0.4

**文档描述:** devops_ci_dispatch 的数据库文档
| 表名 | 说明 |
Expand Down
17 changes: 16 additions & 1 deletion docs/overview/db/devops_ci_environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

**数据库名:** devops_ci_environment

**文档版本:** 1.0.2
**文档版本:** 1.0.4

**文档描述:** devops_ci_environment 的数据库文档
| 表名 | 说明 |
| :---: | :---: |
| T_AGENT_BATCH_INSTALL_TOKEN | |
| T_AGENT_FAILURE_NOTIFY_USER | |
| T_AGENT_PIPELINE_REF | |
| T_AGENT_SHARE_PROJECT | |
Expand All @@ -21,6 +22,20 @@
| T_NODE | 节点信息表 |
| T_PROJECT_CONFIG | |

**表名:** <a>T_AGENT_BATCH_INSTALL_TOKEN</a>

**说明:**

**数据列:**

| 序号 | 名称 | 数据类型 | 长度 | 小数位 | 允许空值 | 主键 | 默认值 | 说明 |
| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| 1 | PROJECT_ID | varchar | 64 | 0 | N | Y | | 项目 ID |
| 2 | USER_ID | varchar | 64 | 0 | N | Y | | token 用户 |
| 3 | TOKEN | varchar | 64 | 0 | N | N | | Base64 编码后 TOKEN |
| 4 | CREATED_TIME | datetime | 19 | 0 | N | N | | 创建时间 |
| 5 | EXPIRED_TIME | datetime | 19 | 0 | N | N | | 过期时间 |

**表名:** <a>T_AGENT_FAILURE_NOTIFY_USER</a>

**说明:**
Expand Down
2 changes: 1 addition & 1 deletion docs/overview/db/devops_ci_image.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**数据库名:** devops_ci_image

**文档版本:** 1.0.2
**文档版本:** 1.0.4

**文档描述:** devops_ci_image 的数据库文档
| 表名 | 说明 |
Expand Down
2 changes: 1 addition & 1 deletion docs/overview/db/devops_ci_log.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**数据库名:** devops_ci_log

**文档版本:** 1.0.2
**文档版本:** 1.0.4

**文档描述:** devops_ci_log 的数据库文档
| 表名 | 说明 |
Expand Down
2 changes: 1 addition & 1 deletion docs/overview/db/devops_ci_notify.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**数据库名:** devops_ci_notify

**文档版本:** 1.0.2
**文档版本:** 1.0.4

**文档描述:** devops_ci_notify 的数据库文档
| 表名 | 说明 |
Expand Down
2 changes: 1 addition & 1 deletion docs/overview/db/devops_ci_op.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**数据库名:** devops_ci_op

**文档版本:** 1.0.2
**文档版本:** 1.0.4

**文档描述:** devops_ci_op 的数据库文档
| 表名 | 说明 |
Expand Down
2 changes: 1 addition & 1 deletion docs/overview/db/devops_ci_openapi.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**数据库名:** devops_ci_openapi

**文档版本:** 1.0.2
**文档版本:** 1.0.4

**文档描述:** devops_ci_openapi 的数据库文档
| 表名 | 说明 |
Expand Down
2 changes: 1 addition & 1 deletion docs/overview/db/devops_ci_plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**数据库名:** devops_ci_plugin

**文档版本:** 1.0.2
**文档版本:** 1.0.4

**文档描述:** devops_ci_plugin 的数据库文档
| 表名 | 说明 |
Expand Down
9 changes: 7 additions & 2 deletions docs/overview/db/devops_ci_process.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**数据库名:** devops_ci_process

**文档版本:** 1.0.2
**文档版本:** 1.0.4

**文档描述:** devops_ci_process 的数据库文档
| 表名 | 说明 |
Expand Down Expand Up @@ -177,6 +177,7 @@
| 14 | CONTAINER_HASH_ID | varchar | 64 | 0 | Y | N | | 容器全局唯一 ID |
| 15 | MATRIX_GROUP_FLAG | bit | 1 | 0 | Y | N | | 是否为构建矩阵 |
| 16 | MATRIX_GROUP_ID | varchar | 64 | 0 | Y | N | | 所属的矩阵组 ID |
| 17 | JOB_ID | varchar | 128 | 0 | Y | N | | jobid |

**表名:** <a>T_PIPELINE_BUILD_DETAIL</a>

Expand Down Expand Up @@ -403,6 +404,7 @@
| 16 | START_TIME | datetime | 23 | 0 | Y | N | | 开始时间 |
| 17 | END_TIME | datetime | 23 | 0 | Y | N | | 结束时间 |
| 18 | TIMESTAMPS | text | 65535 | 0 | Y | N | | 运行中产生的时间戳集合 |
| 19 | ASYNC_STATUS | varchar | 32 | 0 | Y | N | | 插件异步执行状态 |

**表名:** <a>T_PIPELINE_BUILD_STAGE</a>

Expand Down Expand Up @@ -491,6 +493,7 @@
| 28 | PLATFORM_ERROR_CODE | int | 10 | 0 | Y | N | | 对接平台错误码 |
| 29 | CONTAINER_HASH_ID | varchar | 64 | 0 | Y | N | | 构建 Job 唯一标识 |
| 30 | STEP_ID | varchar | 64 | 0 | Y | N | | 标识上下文的自定义 ID |
| 31 | JOB_ID | varchar | 128 | 0 | Y | N | | jobid |

**表名:** <a>T_PIPELINE_BUILD_TEMPLATE_ACROSS_INFO</a>

Expand Down Expand Up @@ -595,6 +598,7 @@
| 16 | PIPELINE_NAME_PINYIN | varchar | 1300 | 0 | Y | N | | 流水线名称拼音 |
| 17 | LATEST_START_TIME | datetime | 23 | 0 | Y | N | | 最近启动时间 |
| 18 | LATEST_VERSION_STATUS | varchar | 64 | 0 | Y | N | | 最新分布版本状态 |
| 19 | LOCKED | bit | 1 | 0 | Y | N | b'0' | 是否锁定,PACv3.0 新增锁定,取代原来 setting 表中的 LOCK |

**表名:** <a>T_PIPELINE_JOB_MUTEX_GROUP</a>

Expand Down Expand Up @@ -775,7 +779,8 @@
| 18 | STATUS | varchar | 16 | 0 | Y | N | | 版本状态 |
| 19 | BRANCH_ACTION | varchar | 32 | 0 | Y | N | | 分支状态 |
| 20 | DESCRIPTION | text | 65535 | 0 | Y | N | | 版本变更说明 |
| 21 | UPDATE_TIME | timestamp | 19 | 0 | N | N | CURRENT_TIMESTAMP | 更新时间 |
| 21 | UPDATER | varchar | 64 | 0 | Y | N | | 最近更新人 |
| 22 | UPDATE_TIME | timestamp | 19 | 0 | N | N | CURRENT_TIMESTAMP | 更新时间 |

**表名:** <a>T_PIPELINE_RULE</a>

Expand Down
3 changes: 2 additions & 1 deletion docs/overview/db/devops_ci_project.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**数据库名:** devops_ci_project

**文档版本:** 1.0.2
**文档版本:** 1.0.4

**文档描述:** devops_ci_project 的数据库文档
| 表名 | 说明 |
Expand Down Expand Up @@ -392,6 +392,7 @@
| 26 | new_window | bit | 1 | 0 | Y | N | b'0' | 是否打开新标签页 |
| 27 | new_windowUrl | varchar | 200 | 0 | Y | N | | 新标签页地址 |
| 28 | cluster_type | varchar | 32 | 0 | N | N | | 集群类型 |
| 29 | DOC_URL | varchar | 255 | 0 | N | N | | 文档链接 |

**表名:** <a>T_SERVICE_TYPE</a>

Expand Down
2 changes: 1 addition & 1 deletion docs/overview/db/devops_ci_quality.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**数据库名:** devops_ci_quality

**文档版本:** 1.0.2
**文档版本:** 1.0.4

**文档描述:** devops_ci_quality 的数据库文档
| 表名 | 说明 |
Expand Down
2 changes: 1 addition & 1 deletion docs/overview/db/devops_ci_repository.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**数据库名:** devops_ci_repository

**文档版本:** 1.0.2
**文档版本:** 1.0.4

**文档描述:** devops_ci_repository 的数据库文档
| 表名 | 说明 |
Expand Down
2 changes: 1 addition & 1 deletion docs/overview/db/devops_ci_sign.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**数据库名:** devops_ci_sign

**文档版本:** 1.0.2
**文档版本:** 1.0.4

**文档描述:** devops_ci_sign 的数据库文档
| 表名 | 说明 |
Expand Down
2 changes: 1 addition & 1 deletion docs/overview/db/devops_ci_store.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**数据库名:** devops_ci_store

**文档版本:** 1.0.2
**文档版本:** 1.0.4

**文档描述:** devops_ci_store 的数据库文档
| 表名 | 说明 |
Expand Down
2 changes: 1 addition & 1 deletion docs/overview/db/devops_ci_ticket.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**数据库名:** devops_ci_ticket

**文档版本:** 1.0.2
**文档版本:** 1.0.4

**文档描述:** devops_ci_ticket 的数据库文档
| 表名 | 说明 |
Expand Down
2 changes: 1 addition & 1 deletion helm-charts/core/ci/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ dependencies:
repository: file://./local_chart/kubernetes-management
version: 0.0.45
digest: sha256:bb11b7ac0e3487504f5563cd2b170d04038fc8971aaecbaca3dc5ecdcb792a43
generated: "2024-06-21T18:05:57.191350067+08:00"
generated: "2024-08-15T12:18:41.358254786+08:00"
Binary file modified helm-charts/core/ci/charts/kubernetes-manager-0.0.45.tgz
Binary file not shown.
13 changes: 13 additions & 0 deletions helm-charts/core/ci/templates/init/init.iam-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,19 @@ spec:
sed -i 's/bk-ci.service.consul/{{ include "bkci.names.fullname" . }}-gateway.{{ .Release.Namespace }}/g' ../ms-init/auth/iam-callback-resource-registere.conf
iam_json_file="../ms-init/auth/iam-callback-resource-registere.conf"
curl -X POST -H "Content-Type:application/json" -d "@$iam_json_file" "http://{{ include "bkci.names.fullname" . }}-auth.{{ .Release.Namespace }}.svc.cluster.local/api/op/auth/iam/callback/"
# 迁移所有项目的特定资源类型资源
curl -X 'POST' \
'http://{{ include "bkci.names.fullname" . }}-auth.{{ .Release.Namespace }}.svc.cluster.local/api/op/auth/migrate/migrateSpecificResourceOfAllProject' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"resourceType": "pipeline",
"includeNullRouterTag": true,
"migrateProjectResource": true,
"migrateProjectDefaultGroup": true,
"migrateOtherResource": true
}'
restartPolicy: OnFailure
{{- end -}}
{{- end -}}
4 changes: 4 additions & 0 deletions src/backend/ci/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -174,4 +174,8 @@ allprojects {
}
}
}
configurations.all {
resolutionStrategy.cacheChangingModulesFor(0,"seconds")
resolutionStrategy.cacheDynamicVersionsFor(0,"seconds")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ object Versions {
const val jjwt = "0.11.5"
const val Okhttp = "4.9.0"
const val jgit = "5.13.1.202206130422-r"
const val iam = "1.0.6"
const val iam = "1.0.7"
const val disklrucache = "2.0.2"
const val BkCrypto = "1.1.3"
const val audit = "1.0.8"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,25 @@ interface OpAuthMigrateResource {
@Parameter(description = "按条件迁移项目实体", required = true)
projectConditionDTO: ProjectConditionDTO
): Result<Boolean>

@POST
@Path("/migrateResourceAuthorization")
@Operation(summary = "迁移资源授权-按照项目")
fun migrateResourceAuthorization(
@Parameter(description = "迁移项目", required = true)
projectCodes: List<String>
): Result<Boolean>

@POST
@Path("/migrateAllResourceAuthorization")
@Operation(summary = "迁移资源授权-全量")
fun migrateAllResourceAuthorization(): Result<Boolean>

@POST
@Path("/fixResourceGroups")
@Operation(summary = "修复资源组")
fun fixResourceGroups(
@Parameter(description = "迁移项目", required = true)
projectCodes: List<String>
): Result<Boolean>
}
Loading

0 comments on commit e4d1b9e

Please sign in to comment.