Author SHA1 Message Date
drone 9e4f2f848a chore(gitops): update network-agent image tag to develop-v.1.0.1-202611170748-6 [skip ci] 2026-11-17 07:49:33 +00:00
drone 52d82b2ae7 chore(gitops): update edge image tags to develop-v.1.0.1-202611170748-14 [skip ci] 2026-11-17 07:48:38 +00:00
drone dccf11023e chore(gitops): update agent image tags to develop-v.1.0.1-202611170746-15 [skip ci] 2026-11-17 07:48:11 +00:00
drone 33f39de1ac chore(gitops): update image key images.audit.tag,images.auditWeb.tag to develop-v.1.0.1-202611170746-8 [skip ci] 2026-11-17 07:46:23 +00:00
drone 5a323cc3f3 chore(gitops): update ultra image tags to develop-v.1.0.1-202611170745-9 [skip ci] 2026-11-17 07:45:53 +00:00
drone c201f85aa4 chore(gitops): update sso image tags to develop-v.1.0.1-202611170744-9 [skip ci] 2026-11-17 07:45:33 +00:00
drone b666d9a987 chore(gitops): update image key images.gateway.tag to develop-v.1.0.1-202611170743-6 [skip ci] 2026-11-17 07:43:54 +00:00
drone c44614fcd2 chore(gitops): update network-agent image tag to develop-v.1.0.1-202611160557-5 [skip ci] 2026-11-16 05:58:23 +00:00
drone 0c0e8394a2 chore(gitops): update edge image tags to develop-v.1.0.1-202611160557-13 [skip ci] 2026-11-16 05:57:21 +00:00
drone cdbf7b3f23 chore(gitops): update agent image tags to develop-v.1.0.1-202611160556-14 [skip ci] 2026-11-16 05:56:52 +00:00
drone 7f0cd927d3 chore(gitops): update image key images.audit.tag,images.auditWeb.tag to develop-v.1.0.1-202611160556-7 [skip ci] 2026-11-16 05:56:23 +00:00
drone 38f3d3fe2b chore(gitops): update ultra image tags to develop-v.1.0.1-202611160555-8 [skip ci] 2026-11-16 05:55:50 +00:00
drone a35ae676ec chore(gitops): update sso image tags to develop-v.1.0.1-202611160555-8 [skip ci] 2026-11-16 05:55:19 +00:00
drone a907ccd3bc chore(gitops): update image key images.gateway.tag to develop-v.1.0.1-202611160554-5 [skip ci] 2026-11-16 05:54:51 +00:00
drone f270395796 chore(gitops): update edge image tags to develop-v.1.0.1-202611110845-12 [skip ci] 2026-11-11 08:45:52 +00:00
drone 7a22c2dcca chore(gitops): update agent image tags to develop-v.1.0.1-202611110845-13 [skip ci] 2026-11-11 08:45:39 +00:00
drone a0ead4b842 chore(gitops): update image key images.audit.tag,images.auditWeb.tag to develop-v.1.0.1-202611110844-6 [skip ci] 2026-11-11 08:44:55 +00:00
drone a71eaf8ca7 chore(gitops): update ultra image tags to develop-v.1.0.1-202611110844-7 [skip ci] 2026-11-11 08:44:25 +00:00
drone 22e8e53fb5 chore(gitops): update sso image tags to develop-v.1.0.1-202611110843-7 [skip ci] 2026-11-11 08:43:57 +00:00
drone a11acbfa9e chore(gitops): update edge image tags to develop-v.1.0.1-202611110627-11 [skip ci] 2026-11-11 06:29:39 +00:00
drone dbd051b733 chore(gitops): update image key images.audit.tag,images.auditWeb.tag to develop-v.1.0.1-202611100825-5 [skip ci] 2026-11-10 08:26:09 +00:00
drone aba1124a8e chore(gitops): update ultra image tags to develop-v.1.0.1-202611100825-6 [skip ci] 2026-11-10 08:25:55 +00:00
drone 556ed2b091 chore(gitops): update agent image tags to develop-v.1.0.1-202611100823-12 [skip ci] 2026-11-10 08:23:56 +00:00
drone 85aaf5e59c chore(gitops): update sso image tags to develop-v.1.0.1-202611100823-6 [skip ci] 2026-11-10 08:23:44 +00:00
drone f6278c70e6 chore(gitops): update sso image tags to develop-v.1.0.1-202611100758-5 [skip ci] 2026-11-10 07:58:24 +00:00
drone 01d5aabd6a chore(gitops): update network-agent image tag to develop-v.1.0.1-202611100740-4 [skip ci] 2026-11-10 07:41:08 +00:00
drone 6fac70ae84 chore(gitops): update edge image tags to develop-v.1.0.1-202611100739-10 [skip ci] 2026-11-10 07:39:56 +00:00
drone 963fa94273 chore(gitops): update agent image tags to develop-v.1.0.1-202611100739-11 [skip ci] 2026-11-10 07:39:13 +00:00
drone 1d8651d143 chore(gitops): update image key images.audit.tag,images.auditWeb.tag to develop-v.1.0.1-202611100738-4 [skip ci] 2026-11-10 07:38:52 +00:00
drone 9cf0ffd40a chore(gitops): update ultra image tags to develop-v.1.0.1-202611100736-5 [skip ci] 2026-11-10 07:38:28 +00:00
drone cf3051221a chore(gitops): update sso image tags to develop-v.1.0.1-202611100734-4 [skip ci] 2026-11-10 07:36:35 +00:00
drone 4426fd5f76 chore(gitops): update image key images.gateway.tag to develop-v.1.0.1-202611100732-4 [skip ci] 2026-11-10 07:34:52 +00:00
drone 3dba385830 chore(gitops): update agent image tags to develop-v.1.0.1-202611100701-10 [skip ci] 2026-11-10 07:04:52 +00:00
drone f0abe3ccce chore(gitops): update edge image tags to develop-v.1.0.1-202611071122-9 [skip ci] 2026-11-07 11:26:00 +00:00
drone 95efa66816 chore(gitops): update agent image tags to develop-v.1.0.1-202611030842-9 [skip ci] 2026-11-03 08:43:56 +00:00
drone 176d4398ff chore(gitops): update agent image tags to develop-v.1.0.1-202611030353-8 [skip ci] 2026-11-03 03:55:48 +00:00
mx b2c969a117 chore: end-to-end verify hooks+webhook+mirror after repair (2026-11-03) [skip ci] 2026-11-03 03:52:55 +00:00
mx 0c2dddb136 chore: mirror-sync-test after server hook repair (2026-11-03) [skip ci] 2026-11-03 03:48:15 +00:00
chenhuan f4167d4a5b demo: enable auto-sync on all demo apps and ApplicationSets
Add syncPolicy.automated (prune=false, selfHeal=true) to all demo
Application definitions and ApplicationSet templates under
applications/demo/ so manifest changes (image/chart version pins from
the release pipeline) are applied by ArgoCD automatically.

- 11 Application manifests + disabled/platform-legacy now auto-sync
- 3 ApplicationSet templates (agents/edges/protocol-servers) now
  propagate auto-sync to generated apps
- codeserver and mixingx-demo-root already had it, unchanged
- bootstrap/mixingx-demo-root.yaml unchanged (already automated)
2026-11-03 11:33:59 +08:00
chenhuan ddc3cb74f0 demo: switch ArgoCD repoURL from Gitee to self-hosted Gitea (git.mixingx.local) 2026-11-03 03:21:45 +00:00
drone 09310182bc chore(gitops): update agent image tags to develop-v.1.0.1-202611030249-5 [skip ci] 2026-11-03 02:50:54 +00:00
drone 90feffe652 chore(gitops): update network-agent image tag to develop-v.1.0.1-202611030205-3 [skip ci] 2026-11-03 02:06:16 +00:00
drone c3819ab3de chore(gitops): update edge image tags to develop-v.1.0.1-202611030205-6 [skip ci] 2026-11-03 02:05:11 +00:00
drone b6af5bfb15 chore(gitops): update agent image tags to develop-v.1.0.1-202611030203-4 [skip ci] 2026-11-03 02:04:47 +00:00
drone b782695654 chore(gitops): update image key images.audit.tag,images.auditWeb.tag to develop-v.1.0.1-202611030203-3 [skip ci] 2026-11-03 02:03:12 +00:00
drone ff25deb642 chore(gitops): update ultra image tags to develop-v.1.0.1-202611030202-4 [skip ci] 2026-11-03 02:02:39 +00:00
drone 4b926d9d55 chore(gitops): update sso image tags to develop-v.1.0.1-202611030202-3 [skip ci] 2026-11-03 02:02:08 +00:00
drone 6dddb721b7 chore(gitops): update image key images.gateway.tag to develop-v.1.0.1-202611030201-3 [skip ci] 2026-11-03 02:01:56 +00:00
chenhuan 609f08d2a3 fix(ci): git_setup 身份改 --global——chart 步骤在克隆的 chart 仓 commit,本地 config 只落当前仓,gitops-tools 镜像无全局身份会 fatal unable to auto-detect email 2026-11-03 01:53:02 +00:00
drone ecd059746a chore(gitops): update agent image tags to develop-v.1.0.1-202611030146-3 [skip ci] 2026-11-03 01:46:14 +00:00
chenhuan c620129717 fix(ci): Harbor 存在性校验 Accept 补 OCI 媒体类型——CI 镜像是 OCI index,仅 docker schema2 会 404 MANIFEST_UNKNOWN(休眠校验被 secrets 补齐后首次执行暴露) 2026-11-03 01:19:35 +00:00
drone bb83f177cd chore(gitops): update network-agent image tag to develop-v.1.0.1-202611030102-2 [skip ci] 2026-11-03 01:03:36 +00:00
drone 4142286d64 chore(gitops): update edge image tags to develop-v.1.0.1-202611030102-5 [skip ci] 2026-11-03 01:02:31 +00:00
drone 627222904a chore(gitops): update agent image tags to develop-v.1.0.1-202611030101-2 [skip ci] 2026-11-03 01:02:01 +00:00
drone a5714431a2 chore(gitops): update image key images.audit.tag,images.auditWeb.tag to develop-v.1.0.1-202611030101-2 [skip ci] 2026-11-03 01:01:33 +00:00
drone 9e4d1e6290 chore(gitops): update ultra image tags to develop-v.1.0.1-202611030100-3 [skip ci] 2026-11-03 01:00:59 +00:00
drone d650ff15ff chore(gitops): update sso image tags to develop-v.1.0.1-202611030100-2 [skip ci] 2026-11-03 01:00:35 +00:00
drone 30865af389 chore(gitops): update image key images.gateway.tag to develop-v.1.0.1-202611030100-2 [skip ci] 2026-11-03 01:00:07 +00:00
drone c7b132e35e chore(gitops): update protocol image tags to develop-v.1.0.1-202611030041-1 [skip ci] 2026-11-03 00:45:43 +00:00
drone f5c32fe060 chore(gitops): update image key images.gateway.tag to develop-v.1.0.1-202611030040-1 [skip ci] 2026-11-03 00:40:13 +00:00
drone 7320edff46 chore(gitops): update sso image tags to develop-v.1.0.1-202611030030-1 [skip ci] 2026-11-03 00:30:32 +00:00
drone 74863653d2 chore(gitops): update image key images.audit.tag,images.auditWeb.tag to develop-v.1.0.1-202611030028-1 [skip ci] 2026-11-03 00:29:08 +00:00
drone efd802a99e chore(gitops): update agent image tags to develop-v.1.0.1-202611030024-1 [skip ci] 2026-11-03 00:28:37 +00:00
drone 03b050e678 chore(gitops): update ultra image tags to develop-v.1.0.1-202611030024-2 [skip ci] 2026-11-03 00:24:20 +00:00
drone d72236e673 chore(gitops): update edge image tags to develop-v.1.0.1-202611030023-4 [skip ci] 2026-11-03 00:24:03 +00:00
drone 0f89203f7c chore(gitops): update edge image tags to develop-v.1.0.1-202611030020-3 [skip ci] 2026-11-03 00:20:57 +00:00
drone 984d0b41f2 chore(gitops): update ultra image tags to develop-v.1.0.1-202611030014-1 [skip ci] 2026-11-03 00:15:15 +00:00
chenhuan eaf1980241 test: sync_on_commit 自动同步验证 [skip ci] 2026-11-02 09:03:34 +00:00
chenhuan ebb0fc2f3a test: push mirror 即时同步验证 [skip ci] 2026-11-02 09:02:21 +00:00
drone ebcb75ba88 chore(gitops): update network-agent image tag to develop-v.1.0.1-202611020824-1 [skip ci] 2026-11-02 08:25:05 +00:00
chenhuan cc7587149a ci: 仓库地址 Gitee→Gitea——promote/auto-bump 缺省与 insteadOf 切换 2026-11-02 08:18:11 +00:00
liulingyun 247f28c4dc chore(gitops): update sso image tags to develop-v.1.0.1-202610300620-123 [skip ci] 2026-10-30 06:20:51 +00:00
liulingyun d8eee0419c chore(gitops): update edge image tags to develop-v.1.0.1-202610300617-122 [skip ci] 2026-10-30 06:19:38 +00:00
liulingyun 0e7fc552cb chore(gitops): update agent image tags to develop-v.1.0.1-202610300614-192 [skip ci] 2026-10-30 06:15:24 +00:00
ximenchuifeng 8a0613e182 chore(gitops): update image key images.audit.tag,images.auditWeb.tag to develop-v.1.0.1-202610300609-26 [skip ci] 2026-10-30 06:10:14 +00:00
liulingyun a619372f87 chore(gitops): update ultra image tags to develop-v.1.0.1-202610300605-67 [skip ci] 2026-10-30 06:07:45 +00:00
薛佳帆 f56cd559ca chore(gitops): update network-agent image tag to develop-v.1.0.1-202610300339-43 [skip ci] 2026-10-30 03:40:12 +00:00
liulingyun 60867ebfe8 chore(gitops): update edge image tags to develop-v.1.0.1-202610300338-121 [skip ci] 2026-10-30 03:39:25 +00:00
liulingyun 54e91f9793 chore(gitops): update agent image tags to develop-v.1.0.1-202610300337-191 [skip ci] 2026-10-30 03:38:34 +00:00
ximenchuifeng 6dc08615a5 chore(gitops): update image key images.audit.tag,images.auditWeb.tag to develop-v.1.0.1-202610300336-25 [skip ci] 2026-10-30 03:37:38 +00:00
liulingyun 65dfc7a4b5 chore(gitops): update ultra image tags to develop-v.1.0.1-202610300336-66 [skip ci] 2026-10-30 03:36:50 +00:00
liulingyun 3d24a570b0 chore(gitops): update sso image tags to develop-v.1.0.1-202610300335-122 [skip ci] 2026-10-30 03:36:04 +00:00
王野 e5bd4e97e0 chore(gitops): update image key images.gateway.tag to develop-v.1.0.1-202610300334-13 [skip ci] 2026-10-30 03:35:20 +00:00
ximenchuifeng 9c46880d65 chore(gitops): update image key images.audit.tag,images.auditWeb.tag to develop-v.1.0.1-202610300330-24 [skip ci] 2026-10-30 03:31:59 +00:00
liulingyun 8335f694de chore(gitops): update edge image tags to develop-v.1.0.1-202610300330-120 [skip ci] 2026-10-30 03:31:49 +00:00
liulingyun 44174095c6 chore(gitops): update agent image tags to develop-v.1.0.1-202610300329-190 [skip ci] 2026-10-30 03:30:55 +00:00
liulingyun 63e3e77300 chore(gitops): update sso image tags to develop-v.1.0.1-202610300329-121 [skip ci] 2026-10-30 03:30:36 +00:00
liulingyun de21e3ae39 chore(gitops): update ultra image tags to develop-v.1.0.1-202610300323-65 [skip ci] 2026-10-30 03:25:59 +00:00
薛佳帆 8badc7befc chore(gitops): update network-agent image tag to develop-v.1.0.1-202610300322-42 [skip ci] 2026-10-30 03:23:07 +00:00
liulingyun dcbb993cbe chore(gitops): update ultra image tags to develop-v.1.0.1-202610300257-63 [skip ci] 2026-10-30 02:58:24 +00:00
liulingyun 9ef9756967 chore(gitops): update agent image tags to develop-v.1.0.1-202610300210-189 [skip ci] 2026-10-30 02:12:25 +00:00
liulingyun 66c53dc81b chore(gitops): update sso image tags to develop-v.1.0.1-202610300209-120 [skip ci] 2026-10-30 02:11:56 +00:00
liulingyun 8bb1335e5c chore(gitops): update agent image tags to develop-v.1.0.1-202610300050-188 [skip ci] 2026-10-30 00:52:25 +00:00
liulingyun e945282de8 chore(gitops): update sso image tags to develop-v.1.0.1-202610300047-119 [skip ci] 2026-10-30 00:49:08 +00:00
liulingyun 788549ce3b chore(gitops): update edge image tags to develop-v.1.0.1-202610300030-119 [skip ci] 2026-10-30 00:32:03 +00:00
liulingyun ec64cd0810 chore(gitops): update agent image tags to develop-v.1.0.1-202610300026-187 [skip ci] 2026-10-30 00:28:50 +00:00
王野 06c1f884d3 chore(gitops): update sso image tags to develop-v.1.0.1-202610290605-116 [skip ci] 2026-10-29 06:06:22 +00:00
王野 d0897e4c7e chore(gitops): update ultra image tags to develop-v.1.0.1-202610290601-61 [skip ci] 2026-10-29 06:02:23 +00:00
liulingyun 8aa34f1cae chore(gitops): update edge image tags to develop-v.1.0.1-202610290557-117 [skip ci] 2026-10-29 05:59:30 +00:00
liulingyun a75db1a89d chore(gitops): update agent image tags to develop-v.1.0.1-202610290516-186 [skip ci] 2026-10-29 05:19:05 +00:00
王野 79c07a05b6 chore(gitops): update ultra image tags to develop-v.1.0.1-202610290354-60 [skip ci] 2026-10-29 03:55:05 +00:00
王野 8590b4e337 chore(gitops): update sso image tags to develop-v.1.0.1-202610290352-115 [skip ci] 2026-10-29 03:54:11 +00:00
ximenchuifeng 33bcfeb9f3 chore(gitops): update image key images.audit.tag,images.auditWeb.tag to develop-v.1.0.1-202610290345-23 [skip ci] 2026-10-29 03:45:58 +00:00
王野 5101c358c9 chore(gitops): update sso image tags to develop-v.1.0.1-202610290341-114 [skip ci] 2026-10-29 03:45:30 +00:00
王野 6a72c2cceb chore(gitops): update ultra image tags to develop-v.1.0.1-202610290335-59 [skip ci] 2026-10-29 03:41:24 +00:00
ximenchuifeng 6c225015f9 chore(gitops): update image key images.audit.tag,images.auditWeb.tag to develop-v.1.0.1-202610290235-22 [skip ci] 2026-10-29 02:37:42 +00:00
王野 30180b3426 chore(gitops): update ultra image tags to develop-v.1.0.1-202610280841-58 [skip ci] 2026-10-28 08:42:25 +00:00
王野 ca6412db39 chore(gitops): update sso image tags to develop-v.1.0.1-202610280841-111 [skip ci] 2026-10-28 08:42:24 +00:00
王野 a7bf3ddf3c chore(gitops): update agent image tags to develop-v.1.0.1-202610280838-182 [skip ci] 2026-10-28 08:41:14 +00:00
王野 141c6f0ad8 chore(gitops): update edge image tags to develop-v.1.0.1-202610280838-109 [skip ci] 2026-10-28 08:41:04 +00:00
王野 bed88bc786 chore(gitops): update edge image tags to develop-v.1.0.1-202610280737-108 [skip ci] 2026-10-28 07:39:12 +00:00
王野 3d4a6af838 chore(gitops): update agent image tags to develop-v.1.0.1-202610280733-181 [skip ci] 2026-10-28 07:37:09 +00:00
王野 23d1fffc92 chore(gitops): update ultra image tags to develop-v.1.0.1-202610280730-57 [skip ci] 2026-10-28 07:32:54 +00:00
王野 403642adb7 chore(gitops): update sso image tags to develop-v.1.0.1-202610280726-110 [skip ci] 2026-10-28 07:30:27 +00:00
王野 a0cf501c67 chore(gitops): update image key images.gateway.tag to develop-v.1.0.1-202610280304-12 [skip ci] 2026-10-28 03:05:10 +00:00
王野 62fc5ceb6c chore(gitops): update sso image tags to develop-v.1.0.1-202610280304-109 [skip ci] 2026-10-28 03:04:53 +00:00
王野 50b379e501 chore(gitops): update ultra image tags to develop-v.1.0.1-202610280303-56 [skip ci] 2026-10-28 03:04:47 +00:00
王野 a62e71a01e chore(gitops): update agent image tags to develop-v.1.0.1-202610280302-180 [skip ci] 2026-10-28 03:03:15 +00:00
王野 d6e6ecd0f6 chore(gitops): update edge image tags to develop-v.1.0.1-202610280302-107 [skip ci] 2026-10-28 03:03:05 +00:00
王野 80cef43763 chore(gitops): update edge image tags to develop-v.1.0.1-202610280217-106 [skip ci] 2026-10-28 02:20:03 +00:00
王野 665436d5e2 chore(gitops): update agent image tags to develop-v.1.0.1-202610280213-179 [skip ci] 2026-10-28 02:17:31 +00:00
王野 aa7af29210 chore(gitops): update ultra image tags to develop-v.1.0.1-202610280211-55 [skip ci] 2026-10-28 02:13:34 +00:00
王野 b5c41dd95b chore(gitops): update sso image tags to develop-v.1.0.1-202610280207-108 [skip ci] 2026-10-28 02:11:00 +00:00
王野 6444e21d99 chore(gitops): update image key images.gateway.tag to develop-v.1.0.1-202610280201-11 [skip ci] 2026-10-28 02:07:15 +00:00
薛佳帆 3bfb59bd28 chore(gitops): update network-agent image tag to develop-v.1.0.1-202610270611-41 [skip ci] 2026-10-27 06:24:10 +00:00
薛佳帆 493e2d882a chore(gitops): update agent image tags to develop-v.1.0.1-202610230114-178 [skip ci] 2026-10-23 01:16:12 +00:00
薛佳帆 37446c4e57 chore(gitops): update agent image tags to develop-v.1.0.1-202610220655-177 [skip ci] 2026-10-22 06:55:45 +00:00
薛佳帆 d81b71e7bf chore(gitops): update agent image tags to develop-v.1.0.1-202610220358-176 [skip ci] 2026-10-22 04:00:40 +00:00
薛佳帆 e853bed556 chore(gitops): update agent image tags to develop-v.1.0.1-202610220239-175 [skip ci] 2026-10-22 02:41:20 +00:00
薛佳帆 a7170d438e chore(gitops): update agent image tags to develop-v.1.0.1-202610220127-174 [skip ci] 2026-10-22 01:29:27 +00:00
薛佳帆 2c5e8cb8c4 chore(gitops): update agent image tags to develop-v.1.0.1-202610220034-172 [skip ci] 2026-10-22 00:38:33 +00:00
王野 3b9b4757ca chore(gitops): update agent image tags to develop-v.1.0.1-202610160859-170 [skip ci] 2026-10-16 08:59:58 +00:00
王野 d47ef3cde4 chore(gitops): update sso image tags to develop-v.1.0.1-202610160857-107 [skip ci] 2026-10-16 08:58:40 +00:00
王野 2c3c795cf5 chore(gitops): update sso image tags to develop-v.1.0.1-202610160847-106 [skip ci] 2026-10-16 08:48:32 +00:00
王野 57c5ec4e3e chore(gitops): update agent image tags to develop-v.1.0.1-202610160838-169 [skip ci] 2026-10-16 08:40:42 +00:00
王野 2b7fee0ca2 chore(gitops): update agent image tags to develop-v.1.0.1-202610160706-168 [skip ci] 2026-10-16 07:08:36 +00:00
王野 145cabbea7 chore(gitops): update sso image tags to develop-v.1.0.1-202610160633-105 [skip ci] 2026-10-16 06:35:29 +00:00
ximenchuifeng 2a67a86c36 chore(gitops): update agent image tags to develop-v.1.0.1-202610140846-167 [skip ci] 2026-10-14 08:49:20 +00:00
ximenchuifeng 3d957fe585 chore(gitops): update agent image tags to develop-v.1.0.1-202610140759-166 [skip ci] 2026-10-14 08:03:40 +00:00
ximenchuifeng 1febbdbd51 chore(gitops): update edge image tags to develop-v.1.0.1-202610140758-105 [skip ci] 2026-10-14 08:02:58 +00:00
ximenchuifeng 0258de9a17 chore(gitops): update edge image tags to develop-v.1.0.1-202610140450-103 [skip ci] 2026-10-14 04:57:21 +00:00
ximenchuifeng 12e0a469fc chore(gitops): update agent image tags to develop-v.1.0.1-202610130759-157 [skip ci] 2026-10-13 08:01:30 +00:00
薛佳帆 b77deef4c2 chore(gitops): update network-agent image tag to develop-v.1.0.1-202610130543-40 [skip ci] 2026-10-13 05:44:32 +00:00
ximenchuifeng 70a095b043 chore(gitops): update edge image tags to develop-v.1.0.1-202610130542-99 [skip ci] 2026-10-13 05:43:21 +00:00
ximenchuifeng cd76d495d3 chore(gitops): update agent image tags to develop-v.1.0.1-202610130541-156 [skip ci] 2026-10-13 05:42:19 +00:00
ximenchuifeng f3da8f251b chore(gitops): update image key images.audit.tag,images.auditWeb.tag to develop-v.1.0.1-202610130539-19 [skip ci] 2026-10-13 05:41:11 +00:00
王野 74ddbb14fb chore(gitops): update ultra image tags to develop-v.1.0.1-202610130536-54 [skip ci] 2026-10-13 05:38:56 +00:00
薛佳帆 d2d082cebd chore(gitops): update sso image tags to develop-v.1.0.1-202610130534-104 [skip ci] 2026-10-13 05:36:25 +00:00
薛佳帆 8d19ed68b2 chore(gitops): update image key images.gateway.tag to develop-v.1.0.1-202610130533-10 [skip ci] 2026-10-13 05:34:14 +00:00
ximenchuifeng 48317b2c07 chore(gitops): update agent image tags to develop-v.1.0.1-202610120722-155 [skip ci] 2026-10-12 07:24:42 +00:00
ximenchuifeng 98d0ad735f chore(gitops): update edge image tags to develop-v.1.0.1-202610120529-98 [skip ci] 2026-10-12 05:31:27 +00:00
ximenchuifeng b2b377c2b5 chore(gitops): update edge image tags to develop-v.1.0.1-202610120509-97 [skip ci] 2026-10-12 05:15:49 +00:00
ximenchuifeng 21c33a8860 chore(gitops): update edge image tags to develop-v.1.0.1-202610120210-96 [skip ci] 2026-10-12 02:12:38 +00:00
王野 39120a3d7e chore(gitops): update agent image tags to develop-v.1.0.1-202610110845-151 [skip ci] 2026-10-11 08:48:40 +00:00
ximenchuifeng 87cc9b011f chore(gitops): update edge image tags to develop-v.1.0.1-202610110838-95 [skip ci] 2026-10-11 08:39:15 +00:00
ximenchuifeng ab14fff5ab chore(gitops): update edge image tags to develop-v.1.0.1-202610110721-94 [skip ci] 2026-10-11 07:21:40 +00:00
ximenchuifeng 823066200a chore(gitops): update edge image tags to develop-v.1.0.1-202610110707-93 [skip ci] 2026-10-11 07:13:36 +00:00
ximenchuifeng e3552039d6 feat(gitops): Edge 实例 ADS Router 身份透传(demo/dev 契约同步)
environments/{demo,dev}/edges.yaml 实例条目增 adsRouter 身份:demo=10.200.0.17.1.1 /
demo-2=10.200.0.18.1.1(前 4 字节互异,第 4 位对齐 idWorkerId 便于记忆;publicAddress=
192.168.1.173 为运维占位,同出口=多 Edge 同出口验收场景,YAML 注释已标)。ApplicationSet
values 模板 hasKey 守卫透传 adsRouter 块;实例缺身份时经 chart 渲染守卫显式失败
(no shared default identity)。dev 停用模板契约同步,未启用。远端清单仍由 Edge
SQLite/UI 管理,部署 values 不回写覆盖。渲染证据 hub docs/research/evidence/
2026-10-10-ads-router-impl/W9-*.md
2026-10-11 14:49:19 +08:00
ximenchuifeng 3e172f81e2 chore(gitops): update edge image tags to develop-v.1.0.1-202610100710-90 [skip ci] 2026-10-10 07:12:02 +00:00
ximenchuifeng e4224dc465 chore(gitops): update edge image tags to develop-v.1.0.1-202610100514-89 [skip ci] 2026-10-10 05:15:57 +00:00
ximenchuifeng 33291691ea chore(gitops): update edge image tags to develop-v.1.0.1-202610100303-88 [skip ci] 2026-10-10 03:05:14 +00:00
ximenchuifeng 65a6979a3b chore(gitops): update edge image tags to develop-v.1.0.1-202610100145-87 [skip ci] 2026-10-10 01:47:26 +00:00
王野 a7153687c7 chore(gitops): update agent image tags to develop-v.1.0.1-202610100134-150 [skip ci] 2026-10-10 01:34:46 +00:00
王野 9db7a80414 chore(gitops): update agent image tags to develop-v.1.0.1-202610100125-149 [skip ci] 2026-10-10 01:29:28 +00:00
ximenchuifeng e45857043b chore(gitops): update edge image tags to develop-v.1.0.1-202610091118-85 [skip ci] 2026-10-09 11:20:17 +00:00
ximenchuifeng a816750c8c chore(gitops): update edge image tags to develop-v.1.0.1-202610091037-84 [skip ci] 2026-10-09 10:38:54 +00:00
ximenchuifeng f79b2c8567 chore(gitops): update edge image tags to develop-v.1.0.1-202610090941-83 [skip ci] 2026-10-09 09:42:08 +00:00
王野 699339c738 chore(gitops): update agent image tags to develop-v.1.0.1-202610090940-148 [skip ci] 2026-10-09 09:41:27 +00:00
ximenchuifeng b4f7c52d29 chore(gitops): update edge image tags to develop-v.1.0.1-202610090937-82 [skip ci] 2026-10-09 09:38:28 +00:00
王野 e68b3a0c34 chore(gitops): update agent image tags to develop-v.1.0.1-202610090937-147 [skip ci] 2026-10-09 09:37:43 +00:00
ximenchuifeng 5860edb63b chore(gitops): update edge image tags to develop-v.1.0.1-202610090924-81 [skip ci] 2026-10-09 09:26:20 +00:00
王野 acf43a9b62 chore(gitops): update agent image tags to develop-v.1.0.1-202610090922-146 [skip ci] 2026-10-09 09:25:04 +00:00
ximenchuifeng e005119b49 chore(gitops): update edge image tags to develop-v.1.0.1-202610090913-80 [skip ci] 2026-10-09 09:14:04 +00:00
ximenchuifeng 47233b57ac chore(gitops): update edge image tags to develop-v.1.0.1-202610090843-79 [skip ci] 2026-10-09 08:44:14 +00:00
ximenchuifeng 605280149a chore(gitops): update edge image tags to develop-v.1.0.1-202610090715-78 [skip ci] 2026-10-09 07:17:52 +00:00
ximenchuifeng 2c73ef67e7 chore(gitops): update edge image tags to develop-v.1.0.1-202610090709-77 [skip ci] 2026-10-09 07:09:39 +00:00
ximenchuifeng 02a0ebd499 chore(gitops): update edge image tags to develop-v.1.0.1-202610090509-76 [skip ci] 2026-10-09 05:11:11 +00:00
ximenchuifeng b2c1856de9 chore(gitops): update edge image tags to develop-v.1.0.1-202610090457-75 [skip ci] 2026-10-09 04:58:16 +00:00
ximenchuifeng f36c12b0b9 chore(gitops): update edge image tags to develop-v.1.0.1-202610090405-74 [skip ci] 2026-10-09 04:07:52 +00:00
ximenchuifeng eb4b6612a5 chore(gitops): update edge image tags to develop-v.1.0.1-202610090233-73 [skip ci] 2026-10-09 02:36:08 +00:00
王野 4171e1e5a3 chore(gitops): update agent image tags to develop-v.1.0.1-202610090228-145 [skip ci] 2026-10-09 02:29:51 +00:00
王野 600888d91d chore(gitops): update agent image tags to develop-v.1.0.1-202610090157-144 [skip ci] 2026-10-09 01:58:15 +00:00
ximenchuifeng d89c26b5fb chore(gitops): update edge image tags to develop-v.1.0.1-202610080925-72 [skip ci] 2026-10-08 09:27:15 +00:00
ximenchuifeng a1bc54b777 chore(gitops): update edge image tags to develop-v.1.0.1-202610080631-70 [skip ci] 2026-10-08 06:33:32 +00:00
ximenchuifeng f0be6bbac3 chore(gitops): update edge image tags to develop-v.1.0.1-202610080314-69 [skip ci] 2026-10-08 03:15:51 +00:00
王野 1a8e58c89f chore(gitops): update edge image tags to dev1.0.1-edge-new-202610080223-68 [skip ci] 2026-10-08 02:24:29 +00:00
王野 a6f6cc2409 chore(gitops): update edge image tags to codex-agent-edge-contract-202610060826-67 [skip ci] 2026-10-06 08:28:07 +00:00
王野 28781fe93d chore(gitops): update edge image tags to codex-agent-edge-contract-202610060810-66 [skip ci] 2026-10-06 08:12:29 +00:00
王野 83921ed22e chore(gitops): update ultra image tags to develop-v.1.0.1-202610060702-53 [skip ci] 2026-10-06 07:03:23 +00:00
王野 deed34c88e chore(gitops): update edge image tags to codex-agent-edge-contract-202610060619-65 [skip ci] 2026-10-06 06:28:07 +00:00
王野 f6b5cea183 chore(gitops): update agent image tags to develop-v.1.0.1-202610060623-143 [skip ci] 2026-10-06 06:28:02 +00:00
王野 e3bdcd241a chore(gitops): update agent image tags to develop-v.1.0.1-202609300810-141 [skip ci] 2026-09-30 08:12:26 +00:00
王野 735f509e82 chore(gitops): update agent image tags to develop-v.1.0.1-202609300715-140 [skip ci] 2026-09-30 07:18:32 +00:00
薛佳帆 1e96b1d167 chore(gitops): update sso image tags to develop-v.1.0.1-202609300715-103 [skip ci] 2026-09-30 07:18:10 +00:00
王野 26c783f917 chore(gitops): update agent image tags to develop-v.1.0.1-202609300621-139 [skip ci] 2026-09-30 06:24:34 +00:00
薛佳帆 2b260ba40d chore(gitops): update sso image tags to develop-v.1.0.1-202609291100-102 [skip ci] 2026-09-29 11:02:26 +00:00
薛佳帆 cb1879f85a chore(gitops): update sso image tags to develop-v.1.0.1-202609291045-101 [skip ci] 2026-09-29 10:46:42 +00:00
薛佳帆 a52f202ad0 chore(gitops): update sso image tags to develop-v.1.0.1-202609291034-100 [skip ci] 2026-09-29 10:36:16 +00:00
薛佳帆 99074aaef3 chore(gitops): update sso image tags to develop-v.1.0.1-202609290849-99 [skip ci] 2026-09-29 08:57:02 +00:00
ximenchuifeng f554495db5 chore(demo): codeserver 升 v0.2.0——extensionsGallery 切微软 Marketplace(测试版全市场可装) 2026-09-29 16:23:51 +08:00
ximenchuifeng 545bf99243 feat(demo): 新增 mixingx-codeserver 测试 IDE 应用——浏览器版 VS Code(镜像 mixingx/codeserver:v0.1.0 预装 GitLens/EditorConfig/Prettier/C#/OPC UA Browser;*.mixingx.local 通配 DNS;automated sync 同客户仓先例;工作区 PVC local-path 5Gi keep) 2026-09-29 15:29:37 +08:00
薛佳帆 1c209af4e9 chore(gitops): update agent image tags to develop-v.1.0.1-202609290531-138 [skip ci] 2026-09-29 05:33:56 +00:00
薛佳帆 febbf75371 chore(gitops): update sso image tags to develop-v.1.0.1-202609290307-98 [skip ci] 2026-09-29 03:08:23 +00:00
薛佳帆 92269dc7a9 chore(gitops): update agent image tags to develop-v.1.0.1-202609290125-137 [skip ci] 2026-09-29 01:27:48 +00:00
薛佳帆 3e4f385620 chore(demo): 移除特征值预警缓存环境级开关(agent 已默认启用,不再需要分环境配置) 2026-09-29 09:23:51 +08:00
薛佳帆 9a4c6dc7dd feat(demo): 开启特征值预警 Redis 近端窗口灰度(featureValueWarningCache.enabled,走 chart env 注入) 2026-09-29 09:08:54 +08:00
薛佳帆 4be786ecb6 chore(gitops): update agent image tags to develop-v.1.0.1-202609290048-136 [skip ci] 2026-09-29 00:50:12 +00:00
王野 faec7425b6 chore(gitops): update agent image tags to develop-v.1.0.1-202609280709-135 [skip ci] 2026-09-28 07:10:58 +00:00
王野 31ac840f8f chore(gitops): update ultra image tags to develop-v.1.0.1-202609280608-52 [skip ci] 2026-09-28 06:09:03 +00:00
王野 d5d8b18ed2 chore(gitops): update agent image tags to develop-v.1.0.1-202609280558-134 [skip ci] 2026-09-28 05:59:32 +00:00
王野 dc1cc2434d chore(gitops): update agent image tags to develop-v.1.0.1-202609280540-133 [skip ci] 2026-09-28 05:43:55 +00:00
王野 96b3ff79bc chore(gitops): update ultra image tags to develop-v.1.0.1-202609280537-51 [skip ci] 2026-09-28 05:40:13 +00:00
ximenchuifeng cf7d08e11e chore(gitops): update edge image tags to develop-v.1.0.1-202609240638-64 [skip ci] 2026-09-24 06:38:47 +00:00
ximenchuifeng dcc4b57607 chore(gitops): update edge image tags to develop-v.1.0.1-202609240636-63 [skip ci] 2026-09-24 06:37:37 +00:00
ximenchuifeng c1be513888 chore(gitops): update edge image tags to develop-v.1.0.1-202609240321-62 [skip ci] 2026-09-24 03:22:33 +00:00
ximenchuifeng b3b469441f chore(gitops): update edge image tags to develop-v.1.0.1-202609240255-61 [skip ci] 2026-09-24 02:56:50 +00:00
ximenchuifeng 572a1ca5e3 chore(gitops): update edge image tags to develop-v.1.0.1-202609240159-60 [skip ci] 2026-09-24 02:03:43 +00:00
ximenchuifeng 08c48e3cad chore(gitops): update edge image tags to develop-v.1.0.1-202609240155-59 [skip ci] 2026-09-24 01:58:31 +00:00
薛佳帆 d79e4a54c2 chore(gitops): update agent image tags to develop-v.1.0.1-202609230625-132 [skip ci] 2026-09-23 06:27:54 +00:00
薛佳帆 013c48ab1c chore(gitops): update agent image tags to develop-v.1.0.1-202609230150-131 [skip ci] 2026-09-23 01:53:36 +00:00
薛佳帆 cb5033be49 chore(gitops): update agent image tags to develop-v.1.0.1-202609220333-130 [skip ci] 2026-09-22 03:36:36 +00:00
王野 60c82d10da chore(gitops): update agent image tags to develop-v.1.0.1-202609220135-129 [skip ci] 2026-09-22 01:41:30 +00:00
薛佳帆 57373c3c12 chore(gitops): update agent image tags to develop-v.1.0.1-202609211125-128 [skip ci] 2026-09-21 11:27:05 +00:00
薛佳帆 19c0d4f373 chore(gitops): update agent image tags to develop-v.1.0.1-202609211114-127 [skip ci] 2026-09-21 11:15:58 +00:00
王野 c72c63817b chore(gitops): update ultra image tags to develop-v.1.0.1-202609210845-50 [skip ci] 2026-09-21 08:46:00 +00:00
薛佳帆 6e068e82c8 chore(gitops): update agent image tags to develop-v.1.0.1-202609210842-126 [skip ci] 2026-09-21 08:45:23 +00:00
薛佳帆 c306b66c74 chore(gitops): update sso image tags to develop-v.1.0.1-202609210842-97 [skip ci] 2026-09-21 08:45:06 +00:00
王野 8fc7880201 chore(gitops): update agent image tags to develop-v.1.0.1-202609210634-125 [skip ci] 2026-09-21 06:35:09 +00:00
王野 f6cdc61a6d chore(gitops): update agent image tags to develop-v.1.0.1-202609210630-124 [skip ci] 2026-09-21 06:32:25 +00:00
薛佳帆 9946440cf1 chore(gitops): update agent image tags to develop-v.1.0.1-202609200813-123 [skip ci] 2026-09-20 08:14:47 +00:00
薛佳帆 393a7589d7 chore(gitops): update agent image tags to develop-v.1.0.1-202609200803-122 [skip ci] 2026-09-20 08:04:56 +00:00
薛佳帆 1e83e4178d chore(gitops): update agent image tags to develop-v.1.0.1-202609200758-121 [skip ci] 2026-09-20 08:00:12 +00:00
薛佳帆 7ace433909 chore(gitops): update agent image tags to develop-v.1.0.1-202609200320-120 [skip ci] 2026-09-20 03:21:52 +00:00
王野 58b5091fc3 chore(gitops): update agent image tags to develop-v.1.0.1-202609200232-119 [skip ci] 2026-09-20 02:36:38 +00:00
ximenchuifeng fbf944a1c2 chore(gitops): update edge image tags to develop-v.1.0.1-202609180539-58 [skip ci] 2026-09-18 05:41:57 +00:00
薛佳帆 029a8d813f chore(gitops): update agent image tags to develop-v.1.0.1-202609180527-117 [skip ci] 2026-09-18 05:29:04 +00:00
薛佳帆 3056443464 chore(gitops): update agent image tags to develop-v.1.0.1-202609180339-116 [skip ci] 2026-09-18 03:42:14 +00:00
薛佳帆 8957bf19d6 chore(gitops): update agent image tags to develop-v.1.0.1-202609180334-114 [skip ci] 2026-09-18 03:36:45 +00:00
薛佳帆 36f49e3716 chore(gitops): update agent image tags to develop-v.1.0.1-202609180251-113 [skip ci] 2026-09-18 02:53:06 +00:00
薛佳帆 8aff206ea0 chore(gitops): update agent image tags to develop-v.1.0.1-202609180154-112 [skip ci] 2026-09-18 01:57:15 +00:00
薛佳帆 6d091290df chore(gitops): update agent image tags to develop-v.1.0.1-202609170851-111 [skip ci] 2026-09-17 08:52:12 +00:00
薛佳帆 c75ba04079 chore(gitops): update agent image tags to develop-v.1.0.1-202609170753-110 [skip ci] 2026-09-17 07:56:09 +00:00
ximenchuifeng b332c4a4d5 chore(gitops): update agent image tags to develop-v.1.0.1-202609151048-108 [skip ci] 2026-09-15 10:50:46 +00:00
薛佳帆 3f27ef813c chore(gitops): update agent image tags to develop-v.1.0.1-202609150947-106 [skip ci] 2026-09-15 09:48:30 +00:00
ximenchuifeng 337e4604db chore(gitops): update edge image tags to develop-v.1.0.1-202609150935-56 [skip ci] 2026-09-15 09:36:35 +00:00
薛佳帆 8e31ceaf04 chore(gitops): update agent image tags to develop-v.1.0.1-202609150912-105 [skip ci] 2026-09-15 09:14:46 +00:00
王野 31a08de579 chore(gitops): update agent image tags to develop-v.1.0.1-202609150757-104 [skip ci] 2026-09-15 08:00:09 +00:00
ximenchuifeng 7278ee2627 chore(gitops): update sso image tags to develop-v.1.0.1-202609150222-96 [skip ci] 2026-09-15 02:25:28 +00:00
薛佳帆 20cd2b5656 chore(gitops): update network-agent image tag to develop-v.1.0.1-202609150214-39 [skip ci] 2026-09-15 02:16:36 +00:00
ximenchuifeng ef6aa14bbc chore(gitops): update edge image tags to develop-v.1.0.1-202609140948-55 [skip ci] 2026-09-14 09:50:36 +00:00
ximenchuifeng 2404cb21a4 chore(gitops): update sso image tags to develop-v.1.0.1-202609140639-91 [skip ci] 2026-09-14 06:41:24 +00:00
薛佳帆 b9512e8130 chore(gitops): update image key images.gateway.tag to develop-v.1.0.1-202609140639-9 [skip ci] 2026-09-14 06:40:29 +00:00
ximenchuifeng 6b7c497baa chore(gitops): update sso image tags to develop-v.1.0.1-202609140528-90 [skip ci] 2026-09-14 05:35:54 +00:00
薛佳帆 b347d177e5 chore(gitops): update network-agent image tag to develop-v.1.0.1-202609100825-38 [skip ci] 2026-09-10 08:26:10 +00:00
薛佳帆 fcad1d3f60 chore(gitops): update network-agent image tag to develop-v.1.0.1-202609100650-37 [skip ci] 2026-09-10 06:51:03 +00:00
薛佳帆 03beb43145 chore(gitops): update network-agent image tag to develop-v.1.0.1-202609100642-36 [skip ci] 2026-09-10 06:43:46 +00:00
ximenchuifeng 874c3b99b3 chore(gitops): update sso image tags to develop-v.1.0.1-202609100552-89 [skip ci] 2026-09-10 05:57:00 +00:00
ximenchuifeng 2f8a86ec26 chore(gitops): update sso image tags to develop-v.1.0.1-202609100524-88 [skip ci] 2026-09-10 05:26:36 +00:00
薛佳帆 be7fcc3297 chore(gitops): update network-agent image tag to develop-v.1.0.1-202609100510-35 [skip ci] 2026-09-10 05:11:32 +00:00
ximenchuifeng c21f64bc6e chore(gitops): update sso image tags to develop-v.1.0.1-202609100432-87 [skip ci] 2026-09-10 04:34:54 +00:00
薛佳帆 255e89f71d chore(gitops): update network-agent image tag to develop-v.1.0.1-202609100433-34 [skip ci] 2026-09-10 04:33:53 +00:00
ximenchuifeng 685162d651 chore(gitops): update sso image tags to develop-v.1.0.1-202609100154-86 [skip ci] 2026-09-10 02:00:36 +00:00
薛佳帆 fc795985b7 chore(gitops): update network-agent image tag to develop-v.1.0.1-202609100153-33 [skip ci] 2026-09-10 01:54:33 +00:00
王野 a9c4e57952 chore(gitops): update edge image tags to develop-v.1.0.1-202609081124-52 [skip ci] 2026-09-08 11:24:38 +00:00
ximenchuifeng dd9275f884 chore(gitops): update image key images.audit.tag,images.auditWeb.tag to develop-v.1.0.1-202609081123-18 [skip ci] 2026-09-08 11:23:54 +00:00
王野 a317e4a65b chore(gitops): update ultra image tags to develop-v.1.0.1-202609081122-49 [skip ci] 2026-09-08 11:23:09 +00:00
ximenchuifeng 4f353f9845 chore(gitops): update sso image tags to develop-v.1.0.1-202609081121-84 [skip ci] 2026-09-08 11:22:20 +00:00
ximenchuifeng b0e2e7338b chore(gitops): update sso image tags to develop-v.1.0.1-202609081121-83 [skip ci] 2026-09-08 11:21:34 +00:00
ximenchuifeng 6d61fa5ea7 chore(gitops): update image key images.audit.tag,images.auditWeb.tag to develop-v.1.0.1-202609081115-17 [skip ci] 2026-09-08 11:15:41 +00:00
王野 331a990690 chore(gitops): update edge image tags to develop-v.1.0.1-202609081114-51 [skip ci] 2026-09-08 11:15:24 +00:00
ximenchuifeng 20b71dae2d chore(gitops): update sso image tags to develop-v.1.0.1-202609081114-82 [skip ci] 2026-09-08 11:14:59 +00:00
ximenchuifeng db6b6af096 chore(gitops): update image key images.gateway.tag to develop-v.1.0.1-202609081104-8 [skip ci] 2026-09-08 11:04:59 +00:00
王野 17838716d9 chore(gitops): update agent image tags to develop-v.1.0.1-202609081054-103 [skip ci] 2026-09-08 10:56:14 +00:00
ximenchuifeng d9ceb3e9c9 chore(gitops): update image key images.audit.tag,images.auditWeb.tag to develop-v.1.0.1-202609081026-16 [skip ci] 2026-09-08 10:27:32 +00:00
王野 4651c33c40 chore(gitops): update edge image tags to develop-v.1.0.1-202609081003-50 [skip ci] 2026-09-08 10:04:37 +00:00
ximenchuifeng e3be8e9718 chore(gitops): update sso image tags to develop-v.1.0.1-202609080906-81 [skip ci] 2026-09-08 09:08:21 +00:00
薛佳帆 99a13a5a7c chore(gitops): update network-agent image tag to develop-v.1.0.1-202609080906-32 [skip ci] 2026-09-08 09:07:16 +00:00
ximenchuifeng dc5a0fdf1f chore(gitops): update sso image tags to develop-v.1.0.1-202609080829-80 [skip ci] 2026-09-08 08:33:40 +00:00
ximenchuifeng 822971d72c Merge remote-tracking branch 'origin/master' 2026-09-08 16:31:22 +08:00
ximenchuifeng be144877d9 feat(ci): ASSIGN_VERSION 参数——false 为纯钉版发布(不分配版本号,不 bump chart)
版本分配从按 action 一刀切改为参数控制(门户工作台「分配版本号」开关):
- true(缺省,兼容现状):任何非 keep 发布(含 pin-acr)分配版本号并 bump chart
- false:纯钉版——不分配版本号、chart 步整体跳过、平台 Application 不 retarget、
  pin-acr 服务 chart 引用不动,只钉 values/image-version 与 release-notes;
  commit title 记「钉版发布(无新版本号)」
- 硬约束:ASSIGN_VERSION=false 与 deliver/ci-now 互斥(镜像 retag 的目标名即版本号)
沙盒演练 4 场景:关+wifi(零版本,diff 仅 values+notes)/ 关+deliver(拒绝)/
开+wifi(分配+bump,现状)/ 关+组件(values 替换,钉版 title)。
2026-09-08 16:31:21 +08:00
薛佳帆 50874a3b70 chore(gitops): update network-agent image tag to develop-v.1.0.1-202609080827-31 [skip ci] 2026-09-08 08:28:05 +00:00
ximenchuifeng 1a95d6c2b1 Merge remote-tracking branch 'origin/master' 2026-09-08 16:15:38 +08:00
ximenchuifeng 95f3216743 fix(ci): 补提交 promote.sh 的 db-scripts 清理(d28a3ef 漏加文件)
d28a3ef 删除 db-scripts/ 时本笔 promote.sh 修改未随行提交(仅 rm 进了
index):移除 pin 的迁移 SQL 拷贝块与 python 检查段,DB_CHANGE 头注释改为
纯标记语义。#17(v1.0.7)发布不受影响(DB_CHANGE 为空,旧逻辑本就不触发)。
2026-09-08 16:15:37 +08:00
ximenchuifeng 4c23035604 chore(gitops): update sso image tags to develop-v.1.0.1-202609080749-77 [skip ci] 2026-09-08 07:52:17 +00:00
ximenchuifeng d28a3ef2f7 chore: 移除 db-scripts/——迁移 SQL 链路整体下线(ADR-0074 决策 11 修订)
CI 不再生成/写回迁移 SQL(sso 流水线已同步移除),release 为纯 GitOps 账本
不携带 SQL,db-scripts 目录一并删除。数据库变更:程序侧 EF Core 自动迁移
(demo/Aspire),客户现场需要人工迁移时由运维自行生成并执行。
promote.sh 的 DB_CHANGE 参数保留为 release-notes/commit 纯标记(提示运维
本次含数据库变更),不再关联任何脚本检查。
2026-09-08 15:41:05 +08:00
ximenchuifeng 83c1bade7a Merge remote-tracking branch 'origin/master' 2026-09-08 15:25:59 +08:00
ximenchuifeng b993132b6f feat(ci): DB_CHANGE 迁移 SQL 由 pin 从 master 树带至 release(修复脚本从未到账)
构建流水线把幂等迁移 SQL 写回 master 的 db-scripts/<svc>/,release 是受保护
客户账本、SQL 从未同步——ADR-0074 所述「pin 时带至 release」此前只有检查
没有动作。现 pin 在 checkout release 后按 DB_CHANGE 服务从 origin/master 树
checkout 对应目录(同时进 index 与工作区,随 pin commit 交付);警告语义改为
「master 树未生成」。沙盒演练:正路径 32 个 SQL 入 commit,负路径(源 tag
无对应 SQL)如实警告不拦截。
2026-09-08 15:25:49 +08:00
王野 d1e0062d3f chore(gitops): update sso image tags to develop-v.1.0.1-202609080722-76, publish db-scripts/sso/develop-v.1.0.1-202609080722-76.sql [skip ci] 2026-09-08 07:24:42 +00:00
薛佳帆 3177b79f36 chore(gitops): update network-agent image tag to develop-v.1.0.1-202609080722-30 [skip ci] 2026-09-08 07:23:12 +00:00
王野 74b550dfa3 chore(gitops): update agent image tags to develop-v.1.0.1-202609080713-102 [skip ci] 2026-09-08 07:14:53 +00:00
王野 91a6ae943a chore(gitops): update ultra image tags to develop-v.1.0.1-202609080712-48 [skip ci] 2026-09-08 07:13:42 +00:00
王野 e25a274523 chore(gitops): update sso image tags to develop-v.1.0.1-202609080704-75, publish db-scripts/sso/develop-v.1.0.1-202609080704-75.sql [skip ci] 2026-09-08 07:07:45 +00:00
薛佳帆 a1c46c0000 chore(gitops): update network-agent image tag to develop-v.1.0.1-202609080703-29 [skip ci] 2026-09-08 07:04:37 +00:00
ximenchuifeng b6dafd1bf4 Merge remote-tracking branch 'origin/master' 2026-09-08 14:56:09 +08:00
ximenchuifeng 154fd35331 merge: feat/plan-mapping——PLAN 动态映射并入(与 pin-component 组件路径共存)
冲突解决:promote.sh prepare 条目循环组件分支前置;pin 步组件段(1.6)与
valuesFiles 服务段(1.5)共存;组件 pin-acr 维持算正式发布(与门户 hasDeliver 同语义)。
合并版演练 4 用例通过:wifi+组件混合 / wifi deliver / 六服务缺省回归 / sso deliver+wifi pin-acr。
2026-09-08 14:55:46 +08:00
ximenchuifeng d06612cb2f Merge branch 'feat/pin-component' 2026-09-08 14:53:09 +08:00
ximenchuifeng 6450d3084c feat(ci): PLAN 动态映射——条目自带 repos/keys/appFile/valuesFiles 即信任(格式校验),三张字典降级为缺省
- ADR-0075 加服务不改程序:门户登记映射(DB)随 PLAN 条目透传,promote 端信任执行
- valuesFiles 钉版新路径(独立 chart 服务如 wifi):替换客户 values 的 image.tag,
  兼容整行 repo:tag / repository+tag 拆分 / image 块三形态
- keys 空 → 不动 image-version;appFile 空 → 不随统一 chart(独立 chart 自然编码)
- deliver 缺省 harborTag:有 keys 查 image-version,无 keys 查 demo 的 values 文件
- ALL → DEFAULT_SERVICES(缺省全量 deliver 名单);DB_CHANGE 按计划内服务校验
- 兼容:六服务不带映射回退字典;未知服务非 keep 拒绝、keep 放行(留痕)
- 演练:PROMOTE_DRY_RUN 双路径(wifi pin-acr 钉直推 tag / deliver retag 新版本)+
  缺省全量回归,均在 /tmp 沙盒 GIT_CONFIG_GLOBAL 隔离下通过
2026-09-08 14:52:54 +08:00
王野 1ebf4b5147 chore(gitops): update sso image tags to develop-v.1.0.1-202609080646-73, publish db-scripts/sso/develop-v.1.0.1-202609080646-73.sql [skip ci] 2026-09-08 06:49:05 +00:00
薛佳帆 a065577d61 chore(gitops): update network-agent image tag to develop-v.1.0.1-202609080646-28 [skip ci] 2026-09-08 06:47:04 +00:00
王野 72ccc9a101 chore(gitops): update sso image tags to develop-v.1.0.1-202609080614-72, publish db-scripts/sso/develop-v.1.0.1-202609080614-72.sql [skip ci] 2026-09-08 06:16:30 +00:00
薛佳帆 6df6d014cc chore(gitops): update network-agent image tag to develop-v.1.0.1-202609080605-27 [skip ci] 2026-09-08 06:05:48 +00:00
ximenchuifeng 4fe73f88e7 chore(gitops): update image key images.gateway.tag to develop-v.1.0.1-202609080540-7 [skip ci] 2026-09-08 05:41:18 +00:00
ximenchuifeng 1e4ff720d1 fix(ci): 组件替换的旧 tag 剥引号(带引号写法如实入账) 2026-09-08 13:35:53 +08:00
ximenchuifeng 86b4aa0b27 feat(ci): 组件条目 valuesFiles 多文件——一个镜像散在多个 values 时一次全替换(如 postgres 在 4 个文件)
逐文件替换,客户目录没有的文件跳过并记录,全部未命中才 fail;
from 汇总各文件旧值(多数相同,不同则如实并列)。
2026-09-08 13:32:26 +08:00
薛佳帆 9025e7c012 chore(gitops): update network-agent image tag to develop-v.1.0.1-202609080530-26 [skip ci] 2026-09-08 05:31:24 +00:00
王野 e7544ca437 chore(gitops): update edge image tags to develop-v.1.0.1-202609080514-49 [skip ci] 2026-09-08 05:14:49 +00:00
王野 7b2a766983 chore(gitops): update agent image tags to develop-v.1.0.1-202609080512-101 [skip ci] 2026-09-08 05:13:53 +00:00
ximenchuifeng defe711ce6 feat(ci): promote.sh 支持系统组件条目——第三方镜像(postgres/redis/mqttx 等)随 PLAN 精确替换 values 里的 tag
PLAN 组件条目:{"component":true,"name":..,"acrTag":..,"valuesFile":..,"imageName":..}
- 登记制:映射随 PLAN 动态携带,流水线零改动即可认识新组件
- pin 精确替换客户 values 文件里该镜像的 tag,兼容整行(image: ...:tag)
  与拆分(repository:+相邻 tag:)两种 values 形态
- 组件也算正式发布:分配版本号+chart bump;release-notes 如实记 from→to
- CHART_ONLY 与组件互斥(防御)

本地 PROMOTE_DRY_RUN 双形态演练通过(mqttx latest→v2.0.0 拆分态、
redis 8.6→8.7 整行态,mxlexus)
2026-09-08 13:13:29 +08:00
王野 a7b08c7bed chore(gitops): update ultra image tags to develop-v.1.0.1-202609080512-47 [skip ci] 2026-09-08 05:12:48 +00:00
ximenchuifeng ffbb985919 Merge branch 'feat/pin-acr' 2026-09-08 12:53:31 +08:00
ximenchuifeng eb44c30dbb fix(ci): pin-acr 也算正式发布——分配版本号并 bump chart(应用引用跟随),镜像仍钉所选 tag
此前 pin-acr 搭纯复用通路(无版本号、chart 不动);按门户语义修正:
选已有 tag 即一次正式发布,默认 auto-bump(+1)可指定,chart 仓 bump、
Application/平台文件引用跟随新 chart,镜像不搬运。

本地 PROMOTE_DRY_RUN 演练通过(mxlexus:v9.9.9,image my-tag-v2,
sso.yaml chart-v1.0.1 → chart-v9.9.9)
2026-09-08 12:41:29 +08:00
王野 c9e6b53ea9 chore(gitops): update sso image tags to develop-v.1.0.1-202609080340-71, publish db-scripts/sso/develop-v.1.0.1-202609080340-71.sql [skip ci] 2026-09-08 03:42:41 +00:00
薛佳帆 976736adf1 chore(gitops): update network-agent image tag to develop-v.1.0.1-202609080340-25 [skip ci] 2026-09-08 03:40:32 +00:00
王野 8749e07cf9 chore(gitops): update ultra image tags to develop-v.1.0.1-202609080333-46 [skip ci] 2026-09-08 03:34:38 +00:00
ximenchuifeng 8b4f3efa9f feat(ci): promote.sh 支持 pin-acr —— 选 ACR 已有 tag 原样钉入客户目录
镜像搬运已剥离给门户「直推 ACR」(crane);发布侧新增 PLAN action pin-acr:
- PLAN: {"service":..,"action":"pin-acr","acrTag":"<ACR 已有 tag>"}
- 不进交付基线(不搬运不 retag),不触发版本号分配(搭纯复用通路)
- pin: image-version 钉所选 tag;chart targetRevision 保持不变(ArgoCD 由 values 变更 sync)
- release-notes/commit message 如实记 from→to 与 sourceTag

本地 PROMOTE_DRY_RUN 全链演练通过(mxlexus:sso v1.0.1 → probe-pin-acr-dryrun)
2026-09-08 11:29:37 +08:00
王野 ac7a5cad6e chore(gitops): update edge image tags to develop-v.1.0.1-202609080325-48 [skip ci] 2026-09-08 03:27:02 +00:00
ximenchuifeng b52a142361 chore(gitops): update image key images.audit.tag,images.auditWeb.tag to develop-v.1.0.1-202609080325-15 [skip ci] 2026-09-08 03:25:52 +00:00
王野 45dd0f8413 chore(gitops): update sso image tags to develop-v.1.0.1-202609080319-70, publish db-scripts/sso/develop-v.1.0.1-202609080319-70.sql [skip ci] 2026-09-08 03:22:21 +00:00
薛佳帆 ac81b8c6a2 chore(gitops): update network-agent image tag to develop-v.1.0.1-202609080319-24 [skip ci] 2026-09-08 03:19:28 +00:00
王野 13ac6ff7ad chore(gitops): update agent image tags to develop-v.1.0.1-202609080315-100 [skip ci] 2026-09-08 03:16:48 +00:00
王野 f4cadead73 chore(gitops): update sso image tags to develop-v.1.0.1-202609080252-69, publish db-scripts/sso/develop-v.1.0.1-202609080252-69.sql [skip ci] 2026-09-08 02:54:34 +00:00
薛佳帆 f9935652f1 chore(gitops): update network-agent image tag to develop-v.1.0.1-202609080252-23 [skip ci] 2026-09-08 02:52:40 +00:00
王野 fe024fa17c chore(gitops): update sso image tags to develop-v.1.0.1-202609080202-68, publish db-scripts/sso/develop-v.1.0.1-202609080202-68.sql [skip ci] 2026-09-08 02:05:06 +00:00
王野 e4da10a370 chore(gitops): update sso image tags to develop-v.1.0.1-202609080140-67, publish db-scripts/sso/develop-v.1.0.1-202609080140-67.sql [skip ci] 2026-09-08 01:41:57 +00:00
薛佳帆 6981130ce1 chore(gitops): update network-agent image tag to develop-v.1.0.1-202609080140-22 [skip ci] 2026-09-08 01:40:46 +00:00
王野 ea4a807d09 chore(gitops): update sso image tags to develop-v.1.0.1-202609080130-66, publish db-scripts/sso/develop-v.1.0.1-202609080130-66.sql [skip ci] 2026-09-08 01:33:10 +00:00
薛佳帆 0336c66a9c chore(gitops): update network-agent image tag to develop-v.1.0.1-202609080130-21 [skip ci] 2026-09-08 01:31:51 +00:00
王野 2b2389bc19 chore(gitops): update agent image tags to develop-v.1.0.1-202609070951-99 [skip ci] 2026-09-07 09:53:12 +00:00
王野 c6f768e102 chore(gitops): update agent image tags to develop-v.1.0.1-202609070932-98 [skip ci] 2026-09-07 09:37:56 +00:00
ximenchuifeng 4989e8e49d chore(gitops): update image key images.audit.tag,images.auditWeb.tag to develop-v.1.0.1-202609070932-13 [skip ci] 2026-09-07 09:32:47 +00:00
ximenchuifeng b1eb05c7a6 chore(gitops): update image key images.audit.tag,images.auditWeb.tag to develop-v.1.0.1-202609070844-12 [skip ci] 2026-09-07 08:45:19 +00:00
王野 e5bd90af87 chore(gitops): update edge image tags to develop-v.1.0.1-202609070839-47 [skip ci] 2026-09-07 08:41:01 +00:00
王野 1fd7f70fdf chore(gitops): update ultra image tags to develop-v.1.0.1-202609070837-45 [skip ci] 2026-09-07 08:38:47 +00:00
王野 5c6eb93deb chore(gitops): update sso image tags to develop-v.1.0.1-202609070835-65, publish db-scripts/sso/develop-v.1.0.1-202609070835-65.sql [skip ci] 2026-09-07 08:36:53 +00:00
王野 e0063ba2a9 chore(gitops): update agent image tags to develop-v.1.0.1-202609070829-97 [skip ci] 2026-09-07 08:31:33 +00:00
王野 643ef06d0f chore(gitops): update sso image tags to develop-v.1.0.1-202609070749-64, publish db-scripts/sso/develop-v.1.0.1-202609070749-64.sql [skip ci] 2026-09-07 07:51:40 +00:00
薛佳帆 467a213edb chore(gitops): update network-agent image tag to develop-v.1.0.1-202609070749-20 [skip ci] 2026-09-07 07:49:26 +00:00
薛佳帆 ff4a7b38b6 chore(gitops): update network-agent image tag to develop-v.1.0.1-202609070736-19 [skip ci] 2026-09-07 07:36:42 +00:00
薛佳帆 9ec3816dd4 chore(gitops): update network-agent image tag to develop-v.1.0.1-202609070733-18 [skip ci] 2026-09-07 07:33:11 +00:00
王野 8978c7a8d0 chore(gitops): update sso image tags to develop-v.1.0.1-202609070718-63, publish db-scripts/sso/develop-v.1.0.1-202609070718-63.sql [skip ci] 2026-09-07 07:20:58 +00:00
薛佳帆 b17353b3b2 chore(gitops): update network-agent image tag to develop-v.1.0.1-202609070718-17 [skip ci] 2026-09-07 07:19:02 +00:00
王野 043abc334a chore(gitops): update sso image tags to develop-v.1.0.1-202609070656-62, publish db-scripts/sso/develop-v.1.0.1-202609070656-62.sql [skip ci] 2026-09-07 06:58:30 +00:00
薛佳帆 991f253611 chore(gitops): update network-agent image tag to develop-v.1.0.1-202609070656-16 [skip ci] 2026-09-07 06:56:31 +00:00
王野 17dcc7b15b chore(gitops): update sso image tags to develop-v.1.0.1-202609070631-61, publish db-scripts/sso/develop-v.1.0.1-202609070631-61.sql [skip ci] 2026-09-07 06:33:32 +00:00
薛佳帆 901d8eb1e2 chore(gitops): update network-agent image tag to develop-v.1.0.1-202609070631-15 [skip ci] 2026-09-07 06:31:36 +00:00
王野 55022c7646 chore(gitops): update sso image tags to develop-v.1.0.1-202609070605-60, publish db-scripts/sso/develop-v.1.0.1-202609070605-60.sql [skip ci] 2026-09-07 06:08:06 +00:00
薛佳帆 1fda08b12d chore(gitops): update network-agent image tag to develop-v.1.0.1-202609070606-14 [skip ci] 2026-09-07 06:06:13 +00:00
王野 e5ac297649 chore(gitops): update sso image tags to develop-v.1.0.1-202609070551-59, publish db-scripts/sso/develop-v.1.0.1-202609070551-59.sql [skip ci] 2026-09-07 05:53:31 +00:00
薛佳帆 49c70a6afb chore(gitops): update network-agent image tag to develop-v.1.0.1-202609070551-13 [skip ci] 2026-09-07 05:51:11 +00:00
王野 21a914a633 chore(gitops): update sso image tags to develop-v.1.0.1-202609070538-58, publish db-scripts/sso/develop-v.1.0.1-202609070538-58.sql [skip ci] 2026-09-07 05:42:41 +00:00
薛佳帆 41d6bf7ae5 chore(gitops): update network-agent image tag to develop-v.1.0.1-202609070538-12 [skip ci] 2026-09-07 05:38:34 +00:00
王野 df046a8d0a chore(gitops): update sso image tags to develop-v.1.0.1-202609070340-57, publish db-scripts/sso/develop-v.1.0.1-202609070340-57.sql [skip ci] 2026-09-07 03:47:50 +00:00
薛佳帆 fec260621c chore(gitops): update network-agent image tag to develop-v.1.0.1-202609070340-11 [skip ci] 2026-09-07 03:40:49 +00:00
薛佳帆 4077146d0b chore(gitops): update network-agent image tag to develop-v.1.0.1-202609070335-10 [skip ci] 2026-09-07 03:35:49 +00:00
王野 780688c503 chore(gitops): update sso image tags to develop-v.1.0.1-202609070329-56, publish db-scripts/sso/develop-v.1.0.1-202609070329-56.sql [skip ci] 2026-09-07 03:31:23 +00:00
王野 1630d16a80 chore(gitops): update sso image tags to develop-v.1.0.1-202609070318-55, publish db-scripts/sso/develop-v.1.0.1-202609070318-55.sql [skip ci] 2026-09-07 03:20:18 +00:00
王野 f43e99fb62 chore(gitops): update sso image tags to develop-v.1.0.1-202609070316-54, publish db-scripts/sso/develop-v.1.0.1-202609070316-54.sql [skip ci] 2026-09-07 03:18:57 +00:00
薛佳帆 c6f7425039 chore(gitops): update network-agent image tag to develop-v.1.0.1-202609070318-9 [skip ci] 2026-09-07 03:18:28 +00:00
薛佳帆 73911fe15d chore(gitops): update sso image tags to develop-v.1.0.1-202609070252-53, publish db-scripts/sso/develop-v.1.0.1-202609070252-53.sql [skip ci] 2026-09-07 02:54:35 +00:00
薛佳帆 a73c5b2e60 chore(gitops): update sso image tags to develop-v.1.0.1-202609070234-52, publish db-scripts/sso/develop-v.1.0.1-202609070234-52.sql [skip ci] 2026-09-07 02:36:05 +00:00
薛佳帆 2cb26de407 chore(gitops): update sso image tags to develop-v.1.0.1-202609070228-51, publish db-scripts/sso/develop-v.1.0.1-202609070228-51.sql [skip ci] 2026-09-07 02:30:14 +00:00
薛佳帆 4a89b08cf7 chore(gitops): update network-agent image tag to develop-v.1.0.1-202609070228-8 [skip ci] 2026-09-07 02:29:05 +00:00
薛佳帆 32193f3c14 chore(gitops): update sso image tags to develop-v.1.0.1-202609070144-50, publish db-scripts/sso/develop-v.1.0.1-202609070144-50.sql [skip ci] 2026-09-07 01:45:17 +00:00
薛佳帆 9477430c5c chore(gitops): update sso image tags to develop-v.1.0.1-202609070136-49, publish db-scripts/sso/develop-v.1.0.1-202609070136-49.sql [skip ci] 2026-09-07 01:38:34 +00:00
薛佳帆 976342041a chore(gitops): update network-agent image tag to develop-v.1.0.1-202609070110-7 [skip ci] 2026-09-07 01:10:58 +00:00
薛佳帆 4428e88531 chore(gitops): update network-agent image tag to develop-v.1.0.1-202609070105-6 [skip ci] 2026-09-07 01:05:53 +00:00
薛佳帆 e18cc37918 refactor(demo): network-agent 从 basic-test 挪到 demo 对齐线上应用族——chart@master + values ref master,镜像 -4(CORS 修复);移除误放的 basic-test 文件(develop/basic-test 分支保留同款) 2026-09-07 09:04:14 +08:00
薛佳帆 cc6547c90e chore(gitops): update network-agent image tag to develop-v.1.0.1-202609070057-5 [skip ci] 2026-09-07 00:57:53 +00:00
薛佳帆 0f79e7d607 chore(basic-test): network-agent 对齐 master——Application values ref 改 master(与全站一致),镜像 tag 更新 develop-v.1.0.1-202609070041-4(CORS 修复) 2026-09-07 08:52:41 +08:00
王野 015ab6771d chore(gitops): update agent image tags to develop-v.1.0.1-202609050719-96 [skip ci] 2026-09-05 07:20:03 +00:00
王野 1c96858a74 feat(config): 移除Agent配置中的共享基础设施PostgreSQL凭据配置
移除了applications/demo/agents.yaml和applications/dev/disabled/agents.yaml中
的sharedInfra.postgres配置部分,同时从environments/demo/agent-common-values.yaml
和environments/dev/agent-common-values.yaml中调整了PostgreSQL配置结构,
将adminUsername改为username并添加了默认密码配置。

删除了不再需要的agent-postgres-role-rollout.md文档和
upsert-agent-postgres-credentials.sh脚本,简化了数据库凭据管理流程。

更新了environments/demo/agents.yaml和environments/dev/agents.yaml中
的Agent配置,移除了databaseUsername和postgresCredentialsSecret字段。
2026-09-05 15:18:41 +08:00
王野 067c15f023 chore(gitops): update agent image tags to develop-v.1.0.1-202609050625-95 [skip ci] 2026-09-05 06:26:56 +00:00
王野 e41c1ef463 Merge branch 'develop/v.1.0.1' 2026-09-04 22:36:38 +08:00
王野 e7a9d4a1a6 feat(agent): configure dedicated PostgreSQL runtime roles 2026-09-04 22:36:20 +08:00
薛佳帆 5f96542180 Merge branch 'develop/v.1.0.1' 2026-09-04 16:24:36 +08:00
薛佳帆 9499c2ac8d feat: 同步 basic-test 的 network-agent Application 与 values——与 develop/basic-test 170dc26 内容一致,随 develop 合入 master 2026-09-04 16:24:21 +08:00
薛佳帆 3576205a5f chore(gitops): update sso image tags to develop-v.1.0.1-202609040753-48, publish db-scripts/sso/develop-v.1.0.1-202609040753-48.sql [skip ci] 2026-09-04 07:56:12 +00:00
54 changed files with 497 additions and 2245 deletions

No files matched your search

-51
View File
@@ -1,51 +0,0 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: mixingx-agents
namespace: argocd
spec:
goTemplate: true
goTemplateOptions:
- missingkey=error
generators:
- matrix:
generators:
- git:
repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
revision: develop/basic-test
files:
- path: environments/basic-test/agents.yaml
- list:
elementsYaml: '{{ .agents | toJson }}'
template:
metadata:
name: 'mixingx-agent-{{ .id }}'
spec:
project: default
sources:
- repoURL: https://gitee.com/mixing-tech/mixingx.hub.chart.git
targetRevision: master
path: release-charts/mixingx-agent-unit
helm:
releaseName: 'mixingx-agent-{{ .id }}'
valueFiles:
- $values/environments/basic-test/image-version.yaml
- $values/environments/basic-test/agent-common-values.yaml
- $values/environments/basic-test/single-node-values.yaml
values: |
site: "{{ .id }}"
description: "{{ .description }}"
phaseType: "{{ .phaseType }}"
{{- if hasKey . "nodeLabel" }}
nodeSelector:
mixingx.io/edge-node: "{{ .nodeLabel }}"
{{- end }}
- repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
targetRevision: develop/basic-test
ref: values
destination:
server: https://kubernetes.default.svc
namespace: mixingx
syncPolicy:
syncOptions:
- CreateNamespace=true
-26
View File
@@ -1,26 +0,0 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: mixingx-audit
namespace: argocd
spec:
project: default
sources:
- repoURL: https://gitee.com/mixing-tech/mixingx.hub.chart.git
targetRevision: master
path: release-charts/mixingx-audit
helm:
releaseName: mixingx-audit
valueFiles:
- $values/environments/basic-test/image-version.yaml
- $values/environments/basic-test/audit-values.yaml
- $values/environments/basic-test/single-node-values.yaml
- repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
targetRevision: develop/basic-test
ref: values
destination:
server: https://kubernetes.default.svc
namespace: mixingx
syncPolicy:
syncOptions:
- CreateNamespace=true
-51
View File
@@ -1,51 +0,0 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: mixingx-edges
namespace: argocd
spec:
goTemplate: true
goTemplateOptions:
- missingkey=error
generators:
- matrix:
generators:
- git:
repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
revision: develop/basic-test
files:
- path: environments/basic-test/edges.yaml
- list:
elementsYaml: '{{ .edges | toJson }}'
template:
metadata:
name: 'mixingx-edge-{{ .id }}'
spec:
project: default
sources:
- repoURL: https://gitee.com/mixing-tech/mixingx.hub.chart.git
targetRevision: master
path: release-charts/mixingx-edge-unit
helm:
releaseName: 'mixingx-edge-{{ .id }}'
valueFiles:
- $values/environments/basic-test/image-version.yaml
- $values/environments/basic-test/edge-common-values.yaml
- $values/environments/basic-test/single-node-values.yaml
values: |
site: "{{ .id }}"
idWorkerId: {{ .idWorkerId }}
description: "{{ .description }}"
{{- if hasKey . "nodeLabel" }}
nodeSelector:
mixingx.io/edge-node: "{{ .nodeLabel }}"
{{- end }}
- repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
targetRevision: develop/basic-test
ref: values
destination:
server: https://kubernetes.default.svc
namespace: mixingx
syncPolicy:
syncOptions:
- CreateNamespace=true
@@ -1,19 +0,0 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: gateway-ip-ingress
namespace: mixingx
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: web
spec:
ingressClassName: traefik
rules:
- http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: gateway-service
port:
number: 8080
-26
View File
@@ -1,26 +0,0 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: mixingx-gateway
namespace: argocd
spec:
project: default
sources:
- repoURL: https://gitee.com/mixing-tech/mixingx.hub.chart.git
targetRevision: master
path: release-charts/mixingx-gateway
helm:
releaseName: mixingx-gateway
valueFiles:
- $values/environments/basic-test/image-version.yaml
- $values/environments/basic-test/gateway-values.yaml
- $values/environments/basic-test/single-node-values.yaml
- repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
targetRevision: develop/basic-test
ref: values
destination:
server: https://kubernetes.default.svc
namespace: mixingx
syncPolicy:
syncOptions:
- CreateNamespace=true
-26
View File
@@ -1,26 +0,0 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: mixingx-infra
namespace: argocd
spec:
project: default
sources:
- repoURL: https://gitee.com/mixing-tech/mixingx.hub.chart.git
targetRevision: master
path: release-charts/mixingx-infra
helm:
releaseName: mixingx-infra
valueFiles:
- $values/environments/basic-test/image-version.yaml
- $values/environments/basic-test/infra-values.yaml
- $values/environments/basic-test/single-node-values.yaml
- repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
targetRevision: develop/basic-test
ref: values
destination:
server: https://kubernetes.default.svc
namespace: mixingx
syncPolicy:
syncOptions:
- CreateNamespace=true
-52
View File
@@ -1,52 +0,0 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: longhorn
namespace: argocd
spec:
project: default
source:
repoURL: https://charts.longhorn.io
chart: longhorn
targetRevision: 1.12.0
helm:
releaseName: longhorn
values: |
global:
imageRegistry: 192.168.1.119:8888/docker-proxy
service:
ui:
type: NodePort
nodePort: 30880
preUpgradeChecker:
jobEnabled: false
upgradeVersionCheck: false
csi:
kubeletRootDir: /var/lib/kubelet
attacherReplicaCount: 1
provisionerReplicaCount: 1
resizerReplicaCount: 1
snapshotterReplicaCount: 1
persistence:
createStorageClass: true
defaultClass: false
defaultClassReplicaCount: 1
defaultDataLocality: disabled
dataEngine: v1
reclaimPolicy: Delete
volumeBindingMode: Immediate
defaultSettings:
defaultDataPath: /var/lib/longhorn/
defaultReplicaCount: '{"v1":"1","v2":"1"}'
v1DataEngine: true
v2DataEngine: false
storageReservedPercentageForDefaultDisk: 10
upgradeChecker: false
longhornUI:
replicas: 1
destination:
server: https://kubernetes.default.svc
namespace: longhorn-system
syncPolicy:
syncOptions:
- CreateNamespace=true
-26
View File
@@ -1,26 +0,0 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: mixingx-sso
namespace: argocd
spec:
project: default
sources:
- repoURL: https://gitee.com/mixing-tech/mixingx.hub.chart.git
targetRevision: master
path: release-charts/mixingx-sso
helm:
releaseName: mixingx-sso
valueFiles:
- $values/environments/basic-test/image-version.yaml
- $values/environments/basic-test/sso-values.yaml
- $values/environments/basic-test/single-node-values.yaml
- repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
targetRevision: develop/basic-test
ref: values
destination:
server: https://kubernetes.default.svc
namespace: mixingx
syncPolicy:
syncOptions:
- CreateNamespace=true
-26
View File
@@ -1,26 +0,0 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: mixingx-ultra
namespace: argocd
spec:
project: default
sources:
- repoURL: https://gitee.com/mixing-tech/mixingx.hub.chart.git
targetRevision: master
path: release-charts/mixingx-ultra
helm:
releaseName: mixingx-ultra
valueFiles:
- $values/environments/basic-test/image-version.yaml
- $values/environments/basic-test/ultra-values.yaml
- $values/environments/basic-test/single-node-values.yaml
- repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
targetRevision: develop/basic-test
ref: values
destination:
server: https://kubernetes.default.svc
namespace: mixingx
syncPolicy:
syncOptions:
- CreateNamespace=true
+6 -3
View File
@@ -11,7 +11,7 @@ spec:
- matrix:
generators:
- git:
repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
repoURL: http://git.mixingx.local/trace/mixingx.deploy.git
revision: master
files:
- path: environments/demo/agents.yaml
@@ -23,7 +23,7 @@ spec:
spec:
project: default
sources:
- repoURL: https://gitee.com/mixing-tech/mixingx.hub.chart.git
- repoURL: http://git.mixingx.local/trace/mixingx.hub.chart.git
targetRevision: master
path: release-charts/mixingx-agent-unit
helm:
@@ -39,12 +39,15 @@ spec:
nodeSelector:
mixingx.io/edge-node: "{{ .nodeLabel }}"
{{- end }}
- repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
- repoURL: http://git.mixingx.local/trace/mixingx.deploy.git
targetRevision: master
ref: values
destination:
server: https://kubernetes.default.svc
namespace: mixingx
syncPolicy:
automated:
prune: false
selfHeal: true
syncOptions:
- CreateNamespace=true
+5 -2
View File
@@ -6,7 +6,7 @@ metadata:
spec:
project: default
sources:
- repoURL: https://gitee.com/mixing-tech/mixingx.hub.chart.git
- repoURL: http://git.mixingx.local/trace/mixingx.hub.chart.git
targetRevision: master
path: release-charts/mixingx-audit
helm:
@@ -14,12 +14,15 @@ spec:
valueFiles:
- $values/environments/demo/image-version.yaml
- $values/environments/demo/audit-values.yaml
- repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
- repoURL: http://git.mixingx.local/trace/mixingx.deploy.git
targetRevision: master
ref: values
destination:
server: https://kubernetes.default.svc
namespace: mixingx
syncPolicy:
automated:
prune: false
selfHeal: true
syncOptions:
- CreateNamespace=true
+29
View File
@@ -0,0 +1,29 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: mixingx-codeserver
namespace: argocd
spec:
project: default
sources:
- repoURL: http://git.mixingx.local/trace/mixingx.hub.chart.git
targetRevision: master
path: release-charts/mixingx-codeserver
helm:
releaseName: mixingx-codeserver
valueFiles:
- $values/environments/demo/image-version.yaml
- $values/environments/demo/codeserver-values.yaml
- repoURL: http://git.mixingx.local/trace/mixingx.deploy.git
targetRevision: master
ref: values
destination:
server: https://kubernetes.default.svc
namespace: mixingx
syncPolicy:
# 测试工具,自动同步(同客户仓先例);prune=false 与根应用一致
automated:
prune: false
selfHeal: true
syncOptions:
- CreateNamespace=true
@@ -6,7 +6,7 @@ metadata:
spec:
project: default
sources:
- repoURL: https://gitee.com/mixing-tech/mixingx.hub.chart.git
- repoURL: http://git.mixingx.local/trace/mixingx.hub.chart.git
targetRevision: master
path: release-charts/mixingx-platform
helm:
@@ -14,12 +14,15 @@ spec:
valueFiles:
- $values/environments/demo/image-version.yaml
- $values/environments/demo/platform-values.yaml
- repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
- repoURL: http://git.mixingx.local/trace/mixingx.deploy.git
targetRevision: master
ref: values
destination:
server: https://kubernetes.default.svc
namespace: mixingx
syncPolicy:
automated:
prune: false
selfHeal: true
syncOptions:
- CreateNamespace=true
+19 -3
View File
@@ -11,7 +11,7 @@ spec:
- matrix:
generators:
- git:
repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
repoURL: http://git.mixingx.local/trace/mixingx.deploy.git
revision: master
files:
- path: environments/demo/edges.yaml
@@ -23,7 +23,7 @@ spec:
spec:
project: default
sources:
- repoURL: https://gitee.com/mixing-tech/mixingx.hub.chart.git
- repoURL: http://git.mixingx.local/trace/mixingx.hub.chart.git
targetRevision: master
path: release-charts/mixingx-edge-unit
helm:
@@ -39,12 +39,28 @@ spec:
nodeSelector:
mixingx.io/edge-node: "{{ .nodeLabel }}"
{{- end }}
- repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
{{- /* ADS Router 逐实例身份透传(chart 默认 enabled=true):实例缺 adsRouter
身份时不在此兜底,由 chart 渲染守卫明确拒绝。 */ -}}
{{- if hasKey . "adsRouter" }}
adsRouter:
localNetId: "{{ .adsRouter.localNetId }}"
publicAddress: "{{ .adsRouter.publicAddress }}"
{{- if hasKey .adsRouter "clientEndPoint" }}
clientEndPoint: "{{ .adsRouter.clientEndPoint }}"
{{- end }}
{{- if hasKey .adsRouter "externalPort" }}
externalPort: {{ .adsRouter.externalPort }}
{{- end }}
{{- end }}
- repoURL: http://git.mixingx.local/trace/mixingx.deploy.git
targetRevision: master
ref: values
destination:
server: https://kubernetes.default.svc
namespace: mixingx
syncPolicy:
automated:
prune: false
selfHeal: true
syncOptions:
- CreateNamespace=true
+5 -2
View File
@@ -6,7 +6,7 @@ metadata:
spec:
project: default
sources:
- repoURL: https://gitee.com/mixing-tech/mixingx.hub.chart.git
- repoURL: http://git.mixingx.local/trace/mixingx.hub.chart.git
targetRevision: master
path: release-charts/mixingx-gateway
helm:
@@ -14,12 +14,15 @@ spec:
valueFiles:
- $values/environments/demo/image-version.yaml
- $values/environments/demo/gateway-values.yaml
- repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
- repoURL: http://git.mixingx.local/trace/mixingx.deploy.git
targetRevision: master
ref: values
destination:
server: https://kubernetes.default.svc
namespace: mixingx
syncPolicy:
automated:
prune: false
selfHeal: true
syncOptions:
- CreateNamespace=true
+5 -2
View File
@@ -6,7 +6,7 @@ metadata:
spec:
project: default
sources:
- repoURL: https://gitee.com/mixing-tech/mixingx.hub.chart.git
- repoURL: http://git.mixingx.local/trace/mixingx.hub.chart.git
targetRevision: master
path: release-charts/mixingx-infra
helm:
@@ -14,12 +14,15 @@ spec:
valueFiles:
- $values/environments/demo/image-version.yaml
- $values/environments/demo/infra-values.yaml
- repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
- repoURL: http://git.mixingx.local/trace/mixingx.deploy.git
targetRevision: master
ref: values
destination:
server: https://kubernetes.default.svc
namespace: mixingx
syncPolicy:
automated:
prune: false
selfHeal: true
syncOptions:
- CreateNamespace=true
+4 -1
View File
@@ -6,12 +6,15 @@ metadata:
spec:
project: default
source:
repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
repoURL: http://git.mixingx.local/trace/mixingx.deploy.git
targetRevision: master
path: networking/longhorn-ui
destination:
server: https://kubernetes.default.svc
namespace: longhorn-system
syncPolicy:
automated:
prune: false
selfHeal: true
syncOptions:
- CreateNamespace=true
+3
View File
@@ -40,5 +40,8 @@ spec:
server: https://kubernetes.default.svc
namespace: longhorn-system
syncPolicy:
automated:
prune: false
selfHeal: true
syncOptions:
- CreateNamespace=true
+5 -2
View File
@@ -6,7 +6,7 @@ metadata:
spec:
project: default
sources:
- repoURL: https://gitee.com/mixing-tech/mixingx.hub.chart.git
- repoURL: http://git.mixingx.local/trace/mixingx.hub.chart.git
targetRevision: master
path: release-charts/mixingx-mqttx
helm:
@@ -14,12 +14,15 @@ spec:
valueFiles:
- $values/environments/demo/image-version.yaml
- $values/environments/demo/mqttx-values.yaml
- repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
- repoURL: http://git.mixingx.local/trace/mixingx.deploy.git
targetRevision: master
ref: values
destination:
server: https://kubernetes.default.svc
namespace: mixingx
syncPolicy:
automated:
prune: false
selfHeal: true
syncOptions:
- CreateNamespace=true
@@ -6,20 +6,23 @@ metadata:
spec:
project: default
sources:
- repoURL: https://gitee.com/mixing-tech/mixingx.hub.chart.git
- repoURL: http://git.mixingx.local/trace/mixingx.hub.chart.git
targetRevision: master
path: release-charts/mixingx-network-agent
helm:
releaseName: mixingx-network-agent
valueFiles:
- $values/environments/basic-test/image-version.yaml
- $values/environments/basic-test/network-agent-values.yaml
- repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
targetRevision: develop/basic-test
- $values/environments/demo/image-version.yaml
- $values/environments/demo/network-agent-values.yaml
- repoURL: http://git.mixingx.local/trace/mixingx.deploy.git
targetRevision: master
ref: values
destination:
server: https://kubernetes.default.svc
namespace: mixingx
syncPolicy:
automated:
prune: false
selfHeal: true
syncOptions:
- CreateNamespace=true
+6 -3
View File
@@ -11,7 +11,7 @@ spec:
- matrix:
generators:
- git:
repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
repoURL: http://git.mixingx.local/trace/mixingx.deploy.git
revision: master
files:
- path: environments/demo/protocol-servers.yaml
@@ -23,7 +23,7 @@ spec:
spec:
project: default
sources:
- repoURL: https://gitee.com/mixing-tech/mixingx.hub.chart.git
- repoURL: http://git.mixingx.local/trace/mixingx.hub.chart.git
targetRevision: master
path: release-charts/mixingx-protocol-server-unit
helm:
@@ -46,12 +46,15 @@ spec:
nodeSelector:
mixingx.io/edge-node: "{{ .nodeLabel }}"
{{- end }}
- repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
- repoURL: http://git.mixingx.local/trace/mixingx.deploy.git
targetRevision: master
ref: values
destination:
server: https://kubernetes.default.svc
namespace: mixingx
syncPolicy:
automated:
prune: false
selfHeal: true
syncOptions:
- CreateNamespace=true
+5 -2
View File
@@ -6,7 +6,7 @@ metadata:
spec:
project: default
sources:
- repoURL: https://gitee.com/mixing-tech/mixingx.hub.chart.git
- repoURL: http://git.mixingx.local/trace/mixingx.hub.chart.git
targetRevision: master
path: release-charts/mixingx-sso
helm:
@@ -14,12 +14,15 @@ spec:
valueFiles:
- $values/environments/demo/image-version.yaml
- $values/environments/demo/sso-values.yaml
- repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
- repoURL: http://git.mixingx.local/trace/mixingx.deploy.git
targetRevision: master
ref: values
destination:
server: https://kubernetes.default.svc
namespace: mixingx
syncPolicy:
automated:
prune: false
selfHeal: true
syncOptions:
- CreateNamespace=true
+4 -1
View File
@@ -6,12 +6,15 @@ metadata:
spec:
project: default
source:
repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
repoURL: http://git.mixingx.local/trace/mixingx.deploy.git
targetRevision: master
path: storageclasses
destination:
server: https://kubernetes.default.svc
namespace: argocd
syncPolicy:
automated:
prune: false
selfHeal: true
syncOptions:
- PruneLast=true
+5 -2
View File
@@ -6,7 +6,7 @@ metadata:
spec:
project: default
sources:
- repoURL: https://gitee.com/mixing-tech/mixingx.hub.chart.git
- repoURL: http://git.mixingx.local/trace/mixingx.hub.chart.git
targetRevision: master
path: release-charts/mixingx-ultra
helm:
@@ -14,12 +14,15 @@ spec:
valueFiles:
- $values/environments/demo/image-version.yaml
- $values/environments/demo/ultra-values.yaml
- repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
- repoURL: http://git.mixingx.local/trace/mixingx.deploy.git
targetRevision: master
ref: values
destination:
server: https://kubernetes.default.svc
namespace: mixingx
syncPolicy:
automated:
prune: false
selfHeal: true
syncOptions:
- CreateNamespace=true
+13 -1
View File
@@ -35,10 +35,22 @@ spec:
site: "{{ .id }}"
idWorkerId: {{ .idWorkerId }}
description: "{{ .description }}"
{{- if .nodeLabel }}
{{- if hasKey . "nodeLabel" }}
nodeSelector:
mixingx.io/edge-node: "{{ .nodeLabel }}"
{{- end }}
{{- /* ADS Router 逐实例身份透传,契约同 demo(本模板保持停用)。 */ -}}
{{- if hasKey . "adsRouter" }}
adsRouter:
localNetId: "{{ .adsRouter.localNetId }}"
publicAddress: "{{ .adsRouter.publicAddress }}"
{{- if hasKey .adsRouter "clientEndPoint" }}
clientEndPoint: "{{ .adsRouter.clientEndPoint }}"
{{- end }}
{{- if hasKey .adsRouter "externalPort" }}
externalPort: {{ .adsRouter.externalPort }}
{{- end }}
{{- end }}
- repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
targetRevision: master
ref: values
-34
View File
@@ -1,34 +0,0 @@
apiVersion: v1
kind: Namespace
metadata:
name: longhorn-system
annotations:
argocd.argoproj.io/sync-wave: "-1"
---
apiVersion: v1
kind: Namespace
metadata:
name: mixingx
annotations:
argocd.argoproj.io/sync-wave: "-1"
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: mixingx-basic-test-root
namespace: argocd
spec:
project: default
source:
repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
targetRevision: develop/basic-test
path: applications/basic-test
destination:
server: https://kubernetes.default.svc
namespace: argocd
syncPolicy:
automated:
prune: false
selfHeal: true
syncOptions:
- CreateNamespace=true
+1 -1
View File
@@ -6,7 +6,7 @@ metadata:
spec:
project: default
source:
repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
repoURL: http://git.mixingx.local/trace/mixingx.deploy.git
targetRevision: master
path: applications/demo
destination:
+1 -1
View File
@@ -7,7 +7,7 @@
# 输出: v1.0.2 这样的版本号(stdout,单行)
# ============================================================================
set -eu
CHART_REPO="${CHART_REPO:-https://gitee.com/mixing-tech/mixingx.hub.chart.git}"
CHART_REPO="${CHART_REPO:-http://git.mixingx.local/trace/mixingx.hub.chart.git}"
latest=$(git ls-remote --tags "$CHART_REPO" 'refs/tags/chart-v*' \
| sed -E 's#.*refs/tags/chart-v##' \
+304 -60
View File
@@ -12,34 +12,60 @@
# 逐镜像记录 digest(.digests,供 release-notes 反向追踪)
# chart chart 仓库 Chart.yaml bump + commit + tag chart-vX.Y.Z + push
# (tag 已存在则复用跳过;纯复用发布整步跳过)
# pin release 分支:按 PLAN 逐服务钉 image tag 与 chart targetRevision,
# pin release 分支:按 PLAN 逐服务钉 image tag(image-version keys 与/或
# valuesFiles 里的 image.tag)与 chart targetRevision(appFile 非空时),
# 追加 release-notes.yaml(最新在前),push
#
# 服务计划 PLAN(JSON 数组,每服务一条;未出现的服务 = keep):
# [{"service":"sso","action":"deliver","harborTag":"develop-v.1.0.1-202608250629-41"},
# {"service":"agent","action":"reuse","version":"v1.0.1"},
# {"service":"ultra","action":"keep"}]
# service: gateway / sso / ultra / audit / agent / edge(前后端一对,共用 tag)
# {"service":"ultra","action":"keep"},
# {"service":"wifi","action":"pin-acr","acrTag":"develop-v.1.0.1-202609080530-26",
# "repos":["network-agent"],"keys":[],"appFile":"",
# "valuesFiles":["network-agent-values.yaml"]}]
# service: 任意服务名(六内置 + 带映射的自定义服务,见下)
# action : keep(缺省,不动)
# reuse(复用已交付版本 version,镜像已在 ACR 不重推)
# deliver(harborTag 为未交付过的 Harbor tag,缺省取 demo 当前,retag 到新版本号)
# ci-now(行为同 deliver,仅 release-notes 如实记录为 ci-now)
# pin-acr(acrTag 为 ACR 上已有 tag,原样钉进客户目录,不搬运不 retag——
# 镜像搬运已剥离给门户「直推 ACR」;版本号即所选 tag 名,
# chart 引用保持不变,ArgoCD 由 values 变更触发 sync)
# 交付映射(PLAN 条目自带,带任一字段即整体信任,缺省字段视为空):
# repos Harbor 镜像仓列表(retag/pin 的镜像来源;自带映射时必填)
# keys environments/<客户>/image-version.yaml 的行名(空 = 不进版本表)
# appFile applications/<客户>/ 下的 Application 文件(空 = 不随统一 chart,
# 即独立 chart 服务,Application 引用其自有 chart 的 master)
# valuesFiles environments/<客户>/ 下的 values 文件列表(钉版落点:替换其中
# image.tag;形态兼容 整行 registry/repo:tag / repository+tag 拆分 /
# image: 块下 tag:)
# 未带映射的条目回退 REPOS/KEYS/APPFILE 三张缺省字典(六内置服务);
# 非 keep 动作必须能落点:keys 与 valuesFiles 至少一项非空。
# 组件条目(component:true + name/acrTag/valuesFiles/imageName):第三方镜像
# (postgres/redis 等)精确替换客户 values 里的 tag,只支持 pin-acr/keep。
# 兼容参数: SERVICES=sso,agent(=这些服务 deliver,其余 keep)
# IMAGES=sso=tagX(=该服务 deliver 且显式 harborTag;逗号分隔多个)
# PLAN 存在时优先;全部缺省 = 6 服务全 deliver demo 当前 tag(与改造前一致)
# PLAN 存在时优先;全部缺省 = 6 内置服务全 deliver demo 当前 tag(与改造前一致)
# protocol mock 不进 PLAN,保留 PROMOTE_PROTOCOLS 独立开关
#
# 版本号分配:
# 有 deliver/ci-now(或 CHART_ONLY=true)→ 需要新版本号(RELEASE_VERSION 缺省 auto-bump);
# 有 deliver/ci-now/pin-acr(或 CHART_ONLY=true)→ 需要新版本号(RELEASE_VERSION 缺省 auto-bump);
# chart tag 已存在不再拒绝,记 CHART_TAG_EXISTS=true 复用(幂等,可同参数重跑/同版本发多客户)
# 全部 keep/reuse(纯复用发布)→ 不分配新版本号,chart 步骤跳过,
# reuse 服务 chart targetRevision 各指已有 chart-<version>
# pin-acr 也算正式发布:分配新版本号并 bump chart(应用引用跟随),镜像钉所选 tag 名
#
# 其他参数:
# CHART_ONLY=true 只发 chart:prepare 跳过镜像基线与 Harbor 校验,retag 整步跳过,
# pin 只动 chart targetRevision 与 release-notes
# ASSIGN_VERSION 是否分配新版本号(缺省 true)。false = 纯钉版发布:
# 不分配版本号、不 bump chart、不动平台 Application,
# 只钉 values/image-version 与 release-notes;此时 PLAN 中
# 不得有 deliver/ci-now(镜像 retag 的目标名就是版本号,必须有号)
# RELEASE_NOTES 发布说明,写入 release-notes.yaml 条目
# DB_CHANGE 逗号分隔服务名(须为本次非 keep 服务子集),条目 dbChange 标 true
# (仅作 release-notes/commit 标记,提示运维本次含数据库变更;
# 迁移脚本不由 CI 产出,运维自行生成并执行)
# OPERATOR 发布操作人,默认 drone
# PROMOTE_DRY_RUN=true 本地演练:docker 与 git push 仅打印不执行
#
@@ -59,8 +85,8 @@ PLAN_TXT_FILE="$WS/.plan.txt"
FACTS_FILE="$WS/.plan-facts"
COMMIT_MSG_FILE="$WS/.commit-msg"
CHART_DIR="$WS/.ci/chart"
DEPLOY_REPO="${DEPLOY_REPO:-https://gitee.com/mixing-tech/mixingx.deploy.git}"
CHART_REPO="${CHART_REPO:-https://gitee.com/mixing-tech/mixingx.hub.chart.git}"
DEPLOY_REPO="${DEPLOY_REPO:-http://git.mixingx.local/trace/mixingx.deploy.git}"
CHART_REPO="${CHART_REPO:-http://git.mixingx.local/trace/mixingx.hub.chart.git}"
CHARTS_DIR="release-charts"
HARBOR_HOST="${HARBOR_HOST:-192.168.1.119:8888}"
DRY_RUN="${PROMOTE_DRY_RUN:-false}"
@@ -81,9 +107,11 @@ run() {
}
git_setup() {
git config --global url."https://gitee.com/".insteadOf "git@gitee.com:" 2>/dev/null || true
git config user.name "Drone Release"
git config user.email "drone-release@mixingx.local"
git config --global url."http://git.mixingx.local/".insteadOf "git@git.mixingx.local:" 2>/dev/null || true
# 身份必须 --global:chart 步骤在克隆出的 chart 仓里 commit(pin 在 deploy 仓),
# 本地 config 只落在当前仓,克隆仓会因无 user.name/email 而 "unable to auto-detect email"
git config --global user.name "Drone Release"
git config --global user.email "drone-release@mixingx.local"
}
require_env() {
@@ -144,10 +172,11 @@ CHART_ONLY = os.environ.get("CHART_ONLY", "false") == "true"
WITH_PROTOCOLS = os.environ.get("PROMOTE_PROTOCOLS", "false") == "true"
HARBOR_HOST = os.environ.get("HARBOR_HOST", "192.168.1.119:8888")
# ── 服务映射常量表(pin 步骤经 .plan.json 继承同一份定义,勿另起副本)──
ALL = ["gateway", "sso", "ultra", "audit", "agent", "edge"]
ACTIONS = ["keep", "reuse", "deliver", "ci-now"]
# 服务 → 镜像 repo 列表(前后端共用同一 tag)
# ── 交付映射:PLAN 条目自带映射优先(信任 + 格式校验),三张字典是未带时的缺省 ──
# (pin 步骤经 .plan.json 继承每条目解析后的映射,勿另起副本)
DEFAULT_SERVICES = ["gateway", "sso", "ultra", "audit", "agent", "edge"]
ACTIONS = ["keep", "reuse", "deliver", "ci-now", "pin-acr"]
# 缺省服务 → 镜像 repo 列表(前后端共用同一 tag)
REPOS = {
"gateway": ["gateway"],
"sso": ["sso", "sso-web"],
@@ -156,7 +185,7 @@ REPOS = {
"agent": ["agent", "agent-web"],
"edge": ["edge", "edge-web"],
}
# 服务 → image-version.yaml 中 images 下的 key 列表
# 缺省服务 → image-version.yaml 中 images 下的 key 列表
KEYS = {
"gateway": ["gateway"],
"sso": ["sso", "ssoWeb"],
@@ -165,7 +194,7 @@ KEYS = {
"agent": ["agent", "agentWeb"],
"edge": ["edge", "edgeWeb"],
}
# 服务 → applications/<客户>/ 下的 Application 文件
# 缺省服务 → applications/<客户>/ 下的 Application 文件
APPFILE = {
"gateway": "gateway.yaml",
"sso": "sso.yaml",
@@ -175,16 +204,61 @@ APPFILE = {
"edge": "edges.yaml",
}
MAPPING_FIELDS = ("repos", "keys", "appFile", "valuesFiles")
def norm_mapping(svc, e):
"""PLAN 条目映射:带任一映射字段 = 整体信任(缺省字段视为空,不与字典合并);
未带映射 = 三张缺省字典;字典也没有 = None(keep 可无映射,非 keep 拒绝)"""
if not any(f in e for f in MAPPING_FIELDS):
if svc in REPOS:
return {"repos": REPOS[svc], "keys": KEYS[svc],
"appFile": APPFILE[svc], "valuesFiles": []}
return None
def field_list(name, pat, what):
raw = e.get(name) or []
if not isinstance(raw, list):
die(f"服务 {svc} 的映射字段 {name} 应为列表")
vals = []
for x in raw:
v = str(x).strip()
if v:
if not re.fullmatch(pat, v):
die(f"服务 {svc} 的映射字段 {name} 含非法值: {v}(应为{what})")
vals.append(v)
return vals
m = {
"repos": field_list("repos", r"[a-z0-9][a-z0-9._-]*", "镜像仓名"),
"keys": field_list("keys", r"[A-Za-z0-9][A-Za-z0-9_-]*", "image-version 行名"),
"appFile": "",
"valuesFiles": field_list("valuesFiles", r"[\w.-]+\.ya?ml", "values 文件名"),
}
app = str(e.get("appFile") or "").strip()
if app:
if not re.fullmatch(r"[\w.-]+\.ya?ml", app):
die(f"服务 {svc} 的映射字段 appFile 含非法值: {app}(应为文件名)")
m["appFile"] = app
if not m["repos"]:
die(f"服务 {svc} 自带映射缺 repos(Harbor 镜像仓,retag/pin 的镜像来源)")
return m
def die(msg):
sys.exit("[promote] 错误: " + msg)
data = yaml.safe_load(open(demo_path, encoding="utf-8")) or {}
images = data.get("images") or {}
def demo_tag(svc):
"""deliver/ci-now 缺省 harborTag = demo 当前 tag(前后端应共用同一 tag)"""
def demo_tag(svc, mapping):
"""deliver/ci-now 缺省 harborTag = demo 当前 tag(前后端应共用同一 tag)。
有 keys 从 image-version 取;无 keys(独立 chart 服务)从 demo 的首个 values 文件取"""
if not mapping["keys"]:
p = os.path.join(os.path.dirname(demo_path), mapping["valuesFiles"][0])
if os.path.exists(p):
t = re.search(r"tag:\s*[\"']?([\w.\-]+)", open(p, encoding="utf-8").read())
if t:
return t.group(1)
die(f"服务 {svc} 缺省 harborTag 无法从 demo 的 {mapping['valuesFiles'][0]} 读取,请显式指定")
tags = []
for k in KEYS[svc]:
for k in mapping["keys"]:
node = images.get(k)
if not isinstance(node, dict) or not node.get("tag"):
die(f"demo image-version 缺少 images.{k}.tag,无法取 {svc} 的 demo 当前 tag")
@@ -204,8 +278,8 @@ if raw_plan:
if not isinstance(plan, list):
die('PLAN 应为 JSON 数组,每服务一条 {"service":..., "action":...}')
for i, e in enumerate(plan):
if not isinstance(e, dict) or "service" not in e:
die(f"PLAN[{i}] 应为对象且含 service 字段")
if not isinstance(e, dict) or ("service" not in e and not e.get("component")):
die(f"PLAN[{i}] 应为对象且含 service 字段(或 component 组件条目)")
entries.append(dict(e))
else:
selected = {}
@@ -228,23 +302,49 @@ else:
e["harborTag"] = t
entries.append(e)
else:
# 全部缺省 = 6 服务全 deliver demo 当前 tag(行为与改造前一致)
entries = [{"service": s, "action": "deliver"} for s in ALL]
# 全部缺省 = 6 内置服务全 deliver demo 当前 tag(行为与改造前一致)
entries = [{"service": s, "action": "deliver"} for s in DEFAULT_SERVICES]
# ── 2. 校验 + 规范化为全量 6 服务计划 ──
# ── 2. 校验 + 规范化(缺省六服务 + PLAN 带映射的额外服务 + 组件条目)──
norm, seen = {}, set()
component_entries = []
extra_order = [] # 非缺省字典的服务(PLAN 出现序;keep 条目也进,留痕一致)
for e in entries:
if e.get("component"):
# 系统组件(第三方镜像):映射随条目携带,只支持 pin-acr/keep
name = str(e.get("name") or "").strip()
tag = str(e.get("acrTag") or "").strip()
vfiles = [str(x).strip() for x in (e.get("valuesFiles") or []) if str(x).strip()]
iname = str(e.get("imageName") or "").strip()
if not (name and tag and vfiles and iname):
die(f"组件条目缺字段(name/acrTag/valuesFiles/imageName): {e}")
if name in seen:
die(f"条目名重复: {name}")
seen.add(name)
component_entries.append({"component": True, "name": name, "action": "pin-acr",
"acrTag": tag, "valuesFiles": vfiles, "imageName": iname})
continue
svc = e.get("service")
if svc not in ALL:
die(f"非法服务名: {svc}(合法值: {', '.join(ALL)})")
if not isinstance(svc, str) or not svc.strip():
die(f"PLAN 条目缺 service 或非字符串: {e}")
svc = svc.strip()
if svc in seen:
die(f"PLAN 中服务重复: {svc}")
seen.add(svc)
action = e.get("action", "keep")
if action not in ACTIONS:
die(f"非法 action: {action}(合法值: {', '.join(ACTIONS)})")
n = {"service": svc, "action": action,
"repos": REPOS[svc], "keys": KEYS[svc], "appFile": APPFILE[svc]}
mapping = norm_mapping(svc, e)
if mapping is None:
# keep 允许无映射(纯 no-op 留痕);非 keep 必须自带映射或命中缺省字典
if action != "keep":
die(f"服务 {svc} 无交付映射(PLAN 未带映射,也不在缺省字典: {', '.join(DEFAULT_SERVICES)}),只能 keep")
mapping = {"repos": [], "keys": [], "appFile": "", "valuesFiles": []}
if action != "keep" and not mapping["keys"] and not mapping["valuesFiles"]:
die(f"服务 {svc} 非 keep 动作但映射无钉版落点(keys/valuesFiles 均空)")
if svc not in REPOS:
extra_order.append(svc)
n = {"service": svc, "action": action, **mapping}
if action == "reuse":
ver = str(e.get("version") or "")
if not re.fullmatch(r"v\d+\.\d+\.\d+", ver):
@@ -252,20 +352,33 @@ for e in entries:
n["version"] = ver
elif action in ("deliver", "ci-now"):
tag = str(e.get("harborTag") or "").strip()
n["harborTag"] = tag or demo_tag(svc)
n["harborTag"] = tag or demo_tag(svc, mapping)
n["harborTagExplicit"] = bool(tag)
elif action == "pin-acr":
tag = str(e.get("acrTag") or "").strip()
if not tag:
die(f"pin-acr 服务 {svc} 需提供 acrTag(ACR 上已有的 tag 名)")
n["acrTag"] = tag
norm[svc] = n
plan_out = [norm.get(s) or {"service": s, "action": "keep",
"repos": REPOS[s], "keys": KEYS[s], "appFile": APPFILE[s]}
for s in ALL]
has_deliver = any(e["action"] in ("deliver", "ci-now") for e in plan_out)
"repos": REPOS[s], "keys": KEYS[s], "appFile": APPFILE[s],
"valuesFiles": []}
for s in DEFAULT_SERVICES]
plan_out += [norm.get(s) or {"service": s, "action": "keep",
"repos": [], "keys": [], "appFile": "", "valuesFiles": []}
for s in extra_order]
plan_out += component_entries
# 组件 pin-acr 也算正式发布(与门户 hasDeliver 同语义:分配版本号并 bump chart)
has_deliver = any(e["action"] in ("deliver", "ci-now", "pin-acr") for e in plan_out)
# ── 3. DB_CHANGE 校验:逗号分隔服务名,须为本次非 keep 服务的子集 ──
# ── 3. DB_CHANGE 校验:逗号分隔服务名,须为本次计划内非 keep 服务的子集 ──
db_change = [s.strip() for s in (os.environ.get("DB_CHANGE") or "").split(",") if s.strip()]
nonkeep = {e["service"] for e in plan_out if e["action"] != "keep"}
known = {e["service"] for e in plan_out if not e.get("component")}
nonkeep = {e["service"] for e in plan_out
if e["action"] != "keep" and not e.get("component")}
for s in db_change:
if s not in ALL:
die(f"DB_CHANGE 含非法服务名: {s}(合法值: {', '.join(ALL)})")
if s not in known:
die(f"DB_CHANGE 含未在计划中的服务名: {s}(计划内: {', '.join(sorted(known))})")
if s not in nonkeep:
die(f"DB_CHANGE 服务 {s} 本次为 keep,不在交付范围内(非 keep 服务: {', '.join(sorted(nonkeep)) or '无'})")
@@ -281,7 +394,10 @@ elif explicit:
for repo in e["repos"]:
url = f"http://{HARBOR_HOST}/v2/mixingx/{repo}/manifests/{e['harborTag']}"
req = urllib.request.Request(url, headers={
"Accept": "application/vnd.docker.distribution.manifest.v2+json",
"Accept": ("application/vnd.oci.image.index.v1+json, "
"application/vnd.oci.image.manifest.v1+json, "
"application/vnd.docker.distribution.manifest.v2+json, "
"application/vnd.docker.distribution.manifest.list.v2+json"),
"Authorization": f"Basic {auth}"})
try:
with urllib.request.urlopen(req, timeout=15) as r:
@@ -329,14 +445,25 @@ open(plantxt_path, "w", encoding="utf-8").write(raw_plan or json.dumps(plan_out,
for e in plan_out:
if e["action"] == "keep":
continue
print(f"[promote] 计划: {e['service']:<8} {e['action']:<8} {e.get('harborTag') or e.get('version') or ''}")
svc_label = e.get("service") or e.get("name") or ""
extra = "(组件)" if e.get("component") else ""
print(f"[promote] 计划: {svc_label:<10} {e['action']:<8} {extra}{e.get('harborTag') or e.get('version') or e.get('acrTag') or ''}")
print(f"[promote] DB 变更服务: {', '.join(db_change) or '无'}")
PY
. "$FACTS_FILE" # HAS_DELIVER=true|false
# ── 版本号与 chart tag 分配 ──
ASSIGN_VERSION="${ASSIGN_VERSION:-true}"
case "$ASSIGN_VERSION" in true|false) : ;; *) die "ASSIGN_VERSION 只接受 true/false,收到: $ASSIGN_VERSION" ;; esac
HAS_REAL_DELIVER=$(python3 -c "
import json
plan = json.load(open('$PLAN_FILE'))
print('true' if any(e['action'] in ('deliver','ci-now') for e in plan) else 'false')")
if [ "$ASSIGN_VERSION" = "false" ] && [ "$HAS_REAL_DELIVER" = "true" ]; then
die "ASSIGN_VERSION=false 与 deliver/ci-now 互斥:镜像 retag 的目标名就是版本号,交付必须分配"
fi
GIVEN_VERSION="${RELEASE_VERSION:-}"
if [ "$HAS_DELIVER" = "true" ] || [ "$CHART_ONLY" = "true" ]; then
if [ "$ASSIGN_VERSION" = "true" ] && { [ "$HAS_DELIVER" = "true" ] || [ "$CHART_ONLY" = "true" ]; }; then
RELEASE_VERSION="${GIVEN_VERSION:-$(sh ci/auto-bump.sh)}"
case "$RELEASE_VERSION" in
v[0-9]*.[0-9]*.[0-9]*) : ;;
@@ -353,11 +480,12 @@ PY
PURE_REUSE=false
log "交付版本: $RELEASE_VERSION 客户: $CUSTOMER chart tag: $CHART_TAG"
else
# 纯复用发布(全部 keep/reuse):不需要新版本号,chart 步骤整体跳过
# 无需新版本号(纯复用,或 ASSIGN_VERSION=false 的纯钉版):chart 步骤整体跳过
RELEASE_VERSION=""; CHART_TAG=""; CHART_TAG_EXISTS=false; PURE_REUSE=true
[ -z "$GIVEN_VERSION" ] || log "警告: 纯复用发布不需要新版本号,已忽略传入的 $GIVEN_VERSION"
log "纯复用发布(无 deliver/ci-now):不分配新版本号,chart 步骤将跳过"
[ -z "$GIVEN_VERSION" ] || log "警告: 本次发布不分配新版本号,已忽略传入的 $GIVEN_VERSION"
log "本次发布不分配新版本号,chart 步骤将跳过"
fi
export ASSIGN_VERSION
# 克隆 chart 仓库(供 chart 步骤复用)并核对交付镜像清单
rm -rf "$WS/.ci"; mkdir -p "$WS/.ci"
@@ -384,6 +512,7 @@ PY
echo "CHART_TAG_EXISTS=$CHART_TAG_EXISTS"
echo "CHART_ONLY=$CHART_ONLY"
echo "PURE_REUSE=$PURE_REUSE"
echo "ASSIGN_VERSION=$ASSIGN_VERSION"
echo "OPERATOR=$(shq "$OPERATOR")"
echo "RELEASE_NOTES=$(shq "$RELEASE_NOTES")"
echo "DB_CHANGE=$(shq "$DB_CHANGE")"
@@ -492,6 +621,9 @@ do_pin() {
git fetch -q origin release || die "release 分支不存在,请先推送初始 release 分支(改造清单 B1)"
git checkout -q -B release origin/release
if [ "$CHART_ONLY" = "true" ] && [ -s "$PLAN_FILE" ] && grep -q '"component": *true' "$PLAN_FILE"; then
die "CHART_ONLY 与组件条目互斥(仅 chart 发布不动任何镜像)"
fi
ENVDIR="environments/$CUSTOMER"
APPDIR="applications/$CUSTOMER"
@@ -516,7 +648,8 @@ NOTES = os.environ.get("RELEASE_NOTES", "")
DB_CHANGE = [s for s in os.environ.get("DB_CHANGE", "").split(",") if s]
plan = json.load(open(plan_path, encoding="utf-8"))
actions = [e for e in plan if e["action"] != "keep"]
actions = [e for e in plan if e["action"] != "keep" and not e.get("component")]
components = [e for e in plan if e.get("component")]
has_deliver = any(e["action"] in ("deliver", "ci-now") for e in plan)
# 平台 Application(infra/mqttx)不属于 PLAN 服务映射,跟随每次新 chart tag
@@ -534,14 +667,21 @@ if os.path.exists(digests_path):
iv_path = os.path.join(envdir, "image-version.yaml")
rn_path = os.path.join(envdir, "release-notes.yaml")
# ── 1) image-version.yaml:只钉非 keep 服务的 key(CHART_ONLY 不动镜像文件)──
# ── 1) image-version.yaml:只钉有 keys 且非 keep 的服务(CHART_ONLY 不动镜像文件)──
from_tags, to_tags = {}, {}
def new_tag_of(e):
if e["action"] in ("deliver", "ci-now"):
return RELEASE_VERSION
if e["action"] == "pin-acr":
return e["acrTag"] # 所选 ACR tag 原样钉入,不 retag
return e["version"]
if not CHART_ONLY:
data = yaml.safe_load(open(iv_path, encoding="utf-8")) or {}
images = data.get("images") or {}
for e in actions:
for e in [x for x in actions if x["keys"]]:
svc = e["service"]
new_tag = RELEASE_VERSION if e["action"] in ("deliver", "ci-now") else e["version"]
new_tag = new_tag_of(e)
to_tags[svc] = new_tag
for i, key in enumerate(e["keys"]):
node = images.get(key)
@@ -559,6 +699,99 @@ if not CHART_ONLY:
yaml.safe_dump(data, open(iv_path, "w", encoding="utf-8"),
default_flow_style=False, sort_keys=False, allow_unicode=True)
print(f"[promote] {iv_path} 钉版完成(未选中服务原样保留)")
# ── 1.5) valuesFiles 服务:逐文件替换镜像 tag(独立 chart 服务的钉版落点)──
# 三种形态:A. <repo>:<tag> 整行 B. repository: 行 + 相邻 tag:
# C. image: 块下相邻 tag:(registry 由 _common/registry.yaml 提供、
# 仓名由 chart 缺省提供,客户 values 只钉 tag 时无 repo 行)
def replace_values_tag(vpath, repo, new_tag):
"""就地替换 vpath 中服务镜像的 tag,返回旧 tag;三种形态均未命中返回 None"""
lines = open(vpath, encoding="utf-8").readlines()
pat_a = re.compile("(" + re.escape(repo) + r"):([A-Za-z0-9][\w.\-]*)")
pat_b = re.compile(r"^(\s*tag:\s*)(\S+)\s*$")
for idx, line in enumerate(lines):
if not repo or repo not in line:
continue
m = pat_a.search(line)
if m: # 形态 A
old = m.group(2).strip("\"'")
lines[idx] = pat_a.sub(lambda _m: _m.group(1) + ":" + new_tag, line)
open(vpath, "w", encoding="utf-8").write("".join(lines))
return old
for j in range(idx + 1, min(idx + 4, len(lines))): # 形态 B
mb = pat_b.match(lines[j])
if mb:
old = mb.group(2).strip("\"'")
lines[j] = mb.group(1) + new_tag + "\n"
open(vpath, "w", encoding="utf-8").write("".join(lines))
return old
for idx, line in enumerate(lines): # 形态 C:首个 image: 块
if re.match(r"^image:\s*(#.*)?$", line):
for j in range(idx + 1, min(idx + 4, len(lines))):
mb = pat_b.match(lines[j])
if mb:
old = mb.group(2).strip("\"'")
lines[j] = mb.group(1) + new_tag + "\n"
open(vpath, "w", encoding="utf-8").write("".join(lines))
return old
break
return None
for e in [x for x in actions if x.get("valuesFiles")]:
svc = e["service"]
new_tag = new_tag_of(e)
olds = []
for vf in e["valuesFiles"]:
vpath = os.path.join(envdir, vf)
if not os.path.exists(vpath):
sys.exit(f"[promote] 错误: 客户目录缺 {vf}(服务 {svc} 的钉版 values 文件)")
old = replace_values_tag(vpath, e["repos"][0], new_tag)
if old is None:
sys.exit(f"[promote] 错误: {vf} 中未找到服务 {svc} 的镜像 tag(整行/拆分/image 块三种形态均未命中)")
olds.append(old)
print(f"[promote] {svc}: {vf} {old} → {new_tag}")
if svc not in from_tags:
from_tags[svc] = " / ".join(olds)
to_tags[svc] = new_tag
# ── 1.6) 系统组件:逐 values 文件精确替换该镜像的 tag(CHART_ONLY 已互斥)──
# 兼容两种 values 形态:A. image: <registry>/<imageName>:<tag>(整行)
# B. repository: <registry>/<imageName> + 相邻 tag: <tag>(拆分)
# 该客户没有的文件(目录结构差异)跳过并记录;全部未命中才报错。
for c in components:
pat_a = re.compile("(" + re.escape(c["imageName"]) + r"):([A-Za-z0-9][\w.\-]*)")
pat_b = re.compile(r"^(\s*tag:\s*)(\S+)\s*$")
hits = [] # (文件, 旧tag)
for vf in c["valuesFiles"]:
vpath = os.path.join(envdir, vf)
if not os.path.exists(vpath):
print(f"[promote] 组件 {c['name']}: {vf} 在客户目录不存在,跳过")
continue
lines = open(vpath, encoding="utf-8").readlines()
old_tag, hit_idx = None, None
for idx, line in enumerate(lines):
if c["imageName"] not in line:
continue
m = pat_a.search(line)
if m: # 形态 A:同行
old_tag, hit_idx = m.group(2).strip("\"'"), idx
lines[idx] = pat_a.sub(lambda _m: _m.group(1) + ":" + c["acrTag"], line)
break
for j in range(idx + 1, min(idx + 4, len(lines))): # 形态 B:邻近 tag: 字段
mb = pat_b.match(lines[j])
if mb:
old_tag, hit_idx = mb.group(2).strip("\"'"), j
lines[j] = mb.group(1) + c["acrTag"] + "\n"
break
if hit_idx is not None:
break
if hit_idx is not None:
open(vpath, "w", encoding="utf-8").write("".join(lines))
hits.append((vf, old_tag))
print(f"[promote] 组件 {c['name']}: {vf} {c['imageName']} {old_tag} → {c['acrTag']}")
if not hits:
sys.exit(f"[promote] 错误: 组件 {c['name']}({c['imageName']})在 {', '.join(c['valuesFiles'])} 中均未找到引用")
from_tags[c["name"]] = " / ".join(t for _, t in hits)
to_tags[c["name"]] = c["acrTag"]
else:
print("[promote] CHART_ONLY=true:image-version.yaml 不动")
@@ -586,7 +819,14 @@ def retarget(path, new_ref, required):
return old_ref, new_ref
for e in actions:
new_ref = CHART_TAG if e["action"] in ("deliver", "ci-now") else f"chart-{e['version']}"
if not e["appFile"]:
print(f"[promote] {e['service']}: 无 appFile 映射,chart 引用不动(独立 chart 服务)")
continue
if e["action"] == "pin-acr" and not CHART_TAG:
# 未分配版本号(ASSIGN_VERSION=false):只钉镜像 tag,chart 引用不动
print(f"[promote] {e['service']}: 未分配版本号,chart 引用不动")
continue
new_ref = CHART_TAG if e["action"] in ("deliver", "ci-now", "pin-acr") else f"chart-{e['version']}"
r = retarget(os.path.join(appdir, e["appFile"]), new_ref, required=True)
if r:
chart_from[e["service"]], chart_to[e["service"]] = r
@@ -621,8 +861,16 @@ def find_reuse_source(svc, version):
return "", ""
svc_entries, src_tags = [], {}
for e in actions:
svc, action = e["service"], e["action"]
for e in actions + components:
svc, action = e.get("service") or e.get("name"), e["action"]
if e.get("component"):
# 组件:替换 values 文件里的镜像 tag(已做),chart 无关,如实记账
frm, to = from_tags.get(svc, ""), to_tags.get(svc, "")
src_tags[svc] = e.get("acrTag", "")
svc_entries.append({"name": svc, "action": action, "from": frm, "to": to,
"sourceTag": e.get("acrTag", ""), "digest": "",
"dbChange": False, "component": True})
continue
if CHART_ONLY:
# CHART_ONLY 条目:from/to 记 chart tag 变化,sourceTag/digest 留空
frm, to = chart_from.get(svc, ""), chart_to.get(svc, "")
@@ -634,6 +882,11 @@ for e in actions:
digest = digests.get(e["repos"][0], "")
if not digest:
print(f"[promote] 警告: {svc} 未取到镜像 digest,release-notes 留空")
elif action == "pin-acr":
# 源即 ACR 上所选 tag 本身,如实记;未搬运,无 digest
frm, to = from_tags.get(svc, ""), to_tags.get(svc, "")
source_tag = e.get("acrTag", "")
digest = ""
else: # reuse
frm, to = from_tags.get(svc, ""), e["version"]
source_tag, digest = find_reuse_source(svc, e["version"])
@@ -656,20 +909,11 @@ if svc_entries or NOTES.strip():
else:
print("[promote] 全部服务 keep 且无 RELEASE_NOTES,release-notes 不变")
# ── 4) db-scripts 检查(只警告不 fail)──
# 2b 改造后:sso/agent/ultra 构建流水线在构建时生成幂等迁移 SQL,以 harbor tag 命名
# 存放于仓库根 db-scripts/<svc>/(如 db-scripts/sso/develop-v.1.0.1-xxx.sql),pin 时带至 release
for svc in DB_CHANGE:
d = os.path.join("db-scripts", svc)
st = src_tags.get(svc, "")
hit = os.path.isdir(d) and bool(st) and any(st in f for f in os.listdir(d))
if not hit:
print(f"[promote] 警告: {svc} 声明了 DB 变更,但 db-scripts/{svc}/ 下未找到与 "
f"{st or '(无 sourceTag)'} 对应的脚本,请确认迁移 SQL 已随构建流水线写回")
# ── 5) commit message:服务清单(action/from→to)与 RELEASE_NOTES ──
if PURE_REUSE:
title = f"release: {CUSTOMER} 纯复用发布(无新版本号)"
kind = "钉版发布" if svc_entries else "纯复用发布"
title = f"release: {CUSTOMER} {kind}(无新版本号)"
elif CHART_ONLY:
title = f"release: {CUSTOMER} chart 交付 {CHART_TAG}(CHART_ONLY)"
else:
@@ -1,268 +0,0 @@
-- MixingX SSO idempotent migration script (PostgreSQL)
-- Image tag: develop-v.1.0.1-202608270652-42
-- Generated by CI: dotnet ef migrations script --idempotent
-- Apply manually per ADR-0074 (生产 DB 变更全人工).
-- ===== ApplicationDbContext =====
CREATE TABLE IF NOT EXISTS "__EFMigrationsHistory" (
"MigrationId" character varying(150) NOT NULL,
"ProductVersion" character varying(32) NOT NULL,
CONSTRAINT "PK___EFMigrationsHistory" PRIMARY KEY ("MigrationId")
);
START TRANSACTION;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE "CAPLock" (
"Key" character varying(128) NOT NULL,
"Instance" character varying(256),
"LastLockTime" TIMESTAMP,
CONSTRAINT "PK_CAPLock" PRIMARY KEY ("Key")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE "CAPPublishedMessage" (
"Id" bigint GENERATED BY DEFAULT AS IDENTITY,
"Version" character varying(20),
"Name" character varying(200) NOT NULL,
"Content" TEXT,
"Retries" integer,
"Added" TIMESTAMP NOT NULL,
"ExpiresAt" TIMESTAMP,
"StatusName" character varying(40) NOT NULL,
CONSTRAINT "PK_CAPPublishedMessage" PRIMARY KEY ("Id")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE "CAPReceivedMessage" (
"Id" bigint GENERATED BY DEFAULT AS IDENTITY,
"Version" character varying(20),
"Name" character varying(400) NOT NULL,
"Group" character varying(200),
"Content" TEXT,
"Retries" integer,
"Added" TIMESTAMP NOT NULL,
"ExpiresAt" TIMESTAMP,
"StatusName" character varying(50) NOT NULL,
CONSTRAINT "PK_CAPReceivedMessage" PRIMARY KEY ("Id")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE role (
"Id" bigint NOT NULL,
"RoleName" character varying(100) NOT NULL,
"CreatedAt" TIMESTAMP NOT NULL,
"UpdatedAt" TIMESTAMP NOT NULL,
"Deleted" boolean NOT NULL,
"RowVersion" integer NOT NULL,
CONSTRAINT "PK_role" PRIMARY KEY ("Id")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE "user" (
"Id" bigint NOT NULL,
"Username" character varying(100) NOT NULL,
"Password" character varying(500) NOT NULL,
"Email" character varying(200),
"Phone" character varying(200),
"IsActive" boolean NOT NULL,
"IsAdmin" boolean NOT NULL,
"RowVersion" integer NOT NULL,
"CreatedAt" TIMESTAMP NOT NULL,
"UpdatedAt" TIMESTAMP NOT NULL,
"Deleted" boolean NOT NULL,
CONSTRAINT "PK_user" PRIMARY KEY ("Id")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE role_app_item (
"Id" bigint NOT NULL,
"AppId" character varying(100) NOT NULL,
"AppName" character varying(100) NOT NULL,
"Permissions" text[] NOT NULL,
role_id bigint NOT NULL,
CONSTRAINT "PK_role_app_item" PRIMARY KEY ("Id"),
CONSTRAINT "FK_role_app_item_role_role_id" FOREIGN KEY (role_id) REFERENCES role ("Id") ON DELETE CASCADE
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE user_role (
"Id" bigint NOT NULL,
"RoleId" bigint NOT NULL,
"RoleName" character varying(100) NOT NULL,
user_id bigint NOT NULL,
CONSTRAINT "PK_user_role" PRIMARY KEY ("Id"),
CONSTRAINT "FK_user_role_user_user_id" FOREIGN KEY (user_id) REFERENCES "user" ("Id") ON DELETE CASCADE
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE INDEX "IX_ExpiresAt_StatusName" ON "CAPPublishedMessage" ("ExpiresAt", "StatusName");
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE INDEX "IX_Version_ExpiresAt_StatusName" ON "CAPPublishedMessage" ("Version", "ExpiresAt", "StatusName");
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE INDEX "IX_ExpiresAt_StatusName1" ON "CAPReceivedMessage" ("ExpiresAt", "StatusName");
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE INDEX "IX_Version_ExpiresAt_StatusName1" ON "CAPReceivedMessage" ("Version", "ExpiresAt", "StatusName");
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE INDEX "IX_role_app_item_role_id" ON role_app_item (role_id);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE INDEX "IX_user_role_user_id" ON user_role (user_id);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20260526021536_Init', '9.0.0');
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260713013128_AddServiceConfig') THEN
CREATE TABLE service_config (
"Id" bigint NOT NULL,
"ServiceId" character varying(100) NOT NULL,
"ServiceName" character varying(100) NOT NULL,
"CreatedAt" TIMESTAMP NOT NULL,
"UpdatedAt" TIMESTAMP NOT NULL,
CONSTRAINT "PK_service_config" PRIMARY KEY ("Id")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260713013128_AddServiceConfig') THEN
CREATE UNIQUE INDEX "IX_service_config_ServiceId" ON service_config ("ServiceId");
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260713013128_AddServiceConfig') THEN
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20260713013128_AddServiceConfig', '9.0.0');
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260804024643_AddUserPreference') THEN
CREATE TABLE user_preference (
"Id" bigint NOT NULL,
"UserId" bigint NOT NULL,
"Scope" character varying(64) NOT NULL,
"Payload" jsonb NOT NULL,
"RowVersion" integer NOT NULL,
"CreatedAt" TIMESTAMP NOT NULL,
"UpdatedAt" TIMESTAMP NOT NULL,
CONSTRAINT "PK_user_preference" PRIMARY KEY ("Id")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260804024643_AddUserPreference') THEN
CREATE UNIQUE INDEX "IX_user_preference_UserId_Scope" ON user_preference ("UserId", "Scope");
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260804024643_AddUserPreference') THEN
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20260804024643_AddUserPreference', '9.0.0');
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260804090000_ResetUserPreference') THEN
ALTER TABLE user_preference ALTER COLUMN "Scope" TYPE character varying(128);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260804090000_ResetUserPreference') THEN
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20260804090000_ResetUserPreference', '9.0.0');
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260825100000_ResetAdminPassword') THEN
UPDATE "user"
SET "Password" = 'Start12345', "UpdatedAt" = NOW()
WHERE "Username" = 'admin' AND "IsAdmin" AND NOT "Deleted";
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260825100000_ResetAdminPassword') THEN
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20260825100000_ResetAdminPassword', '9.0.0');
END IF;
END $EF$;
COMMIT;
@@ -1,268 +0,0 @@
-- MixingX SSO idempotent migration script (PostgreSQL)
-- Image tag: develop-v.1.0.1-202608280622-43
-- Generated by CI: dotnet ef migrations script --idempotent
-- Apply manually per ADR-0074 (生产 DB 变更全人工).
-- ===== ApplicationDbContext =====
CREATE TABLE IF NOT EXISTS "__EFMigrationsHistory" (
"MigrationId" character varying(150) NOT NULL,
"ProductVersion" character varying(32) NOT NULL,
CONSTRAINT "PK___EFMigrationsHistory" PRIMARY KEY ("MigrationId")
);
START TRANSACTION;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE "CAPLock" (
"Key" character varying(128) NOT NULL,
"Instance" character varying(256),
"LastLockTime" TIMESTAMP,
CONSTRAINT "PK_CAPLock" PRIMARY KEY ("Key")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE "CAPPublishedMessage" (
"Id" bigint GENERATED BY DEFAULT AS IDENTITY,
"Version" character varying(20),
"Name" character varying(200) NOT NULL,
"Content" TEXT,
"Retries" integer,
"Added" TIMESTAMP NOT NULL,
"ExpiresAt" TIMESTAMP,
"StatusName" character varying(40) NOT NULL,
CONSTRAINT "PK_CAPPublishedMessage" PRIMARY KEY ("Id")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE "CAPReceivedMessage" (
"Id" bigint GENERATED BY DEFAULT AS IDENTITY,
"Version" character varying(20),
"Name" character varying(400) NOT NULL,
"Group" character varying(200),
"Content" TEXT,
"Retries" integer,
"Added" TIMESTAMP NOT NULL,
"ExpiresAt" TIMESTAMP,
"StatusName" character varying(50) NOT NULL,
CONSTRAINT "PK_CAPReceivedMessage" PRIMARY KEY ("Id")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE role (
"Id" bigint NOT NULL,
"RoleName" character varying(100) NOT NULL,
"CreatedAt" TIMESTAMP NOT NULL,
"UpdatedAt" TIMESTAMP NOT NULL,
"Deleted" boolean NOT NULL,
"RowVersion" integer NOT NULL,
CONSTRAINT "PK_role" PRIMARY KEY ("Id")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE "user" (
"Id" bigint NOT NULL,
"Username" character varying(100) NOT NULL,
"Password" character varying(500) NOT NULL,
"Email" character varying(200),
"Phone" character varying(200),
"IsActive" boolean NOT NULL,
"IsAdmin" boolean NOT NULL,
"RowVersion" integer NOT NULL,
"CreatedAt" TIMESTAMP NOT NULL,
"UpdatedAt" TIMESTAMP NOT NULL,
"Deleted" boolean NOT NULL,
CONSTRAINT "PK_user" PRIMARY KEY ("Id")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE role_app_item (
"Id" bigint NOT NULL,
"AppId" character varying(100) NOT NULL,
"AppName" character varying(100) NOT NULL,
"Permissions" text[] NOT NULL,
role_id bigint NOT NULL,
CONSTRAINT "PK_role_app_item" PRIMARY KEY ("Id"),
CONSTRAINT "FK_role_app_item_role_role_id" FOREIGN KEY (role_id) REFERENCES role ("Id") ON DELETE CASCADE
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE user_role (
"Id" bigint NOT NULL,
"RoleId" bigint NOT NULL,
"RoleName" character varying(100) NOT NULL,
user_id bigint NOT NULL,
CONSTRAINT "PK_user_role" PRIMARY KEY ("Id"),
CONSTRAINT "FK_user_role_user_user_id" FOREIGN KEY (user_id) REFERENCES "user" ("Id") ON DELETE CASCADE
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE INDEX "IX_ExpiresAt_StatusName" ON "CAPPublishedMessage" ("ExpiresAt", "StatusName");
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE INDEX "IX_Version_ExpiresAt_StatusName" ON "CAPPublishedMessage" ("Version", "ExpiresAt", "StatusName");
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE INDEX "IX_ExpiresAt_StatusName1" ON "CAPReceivedMessage" ("ExpiresAt", "StatusName");
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE INDEX "IX_Version_ExpiresAt_StatusName1" ON "CAPReceivedMessage" ("Version", "ExpiresAt", "StatusName");
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE INDEX "IX_role_app_item_role_id" ON role_app_item (role_id);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE INDEX "IX_user_role_user_id" ON user_role (user_id);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20260526021536_Init', '9.0.0');
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260713013128_AddServiceConfig') THEN
CREATE TABLE service_config (
"Id" bigint NOT NULL,
"ServiceId" character varying(100) NOT NULL,
"ServiceName" character varying(100) NOT NULL,
"CreatedAt" TIMESTAMP NOT NULL,
"UpdatedAt" TIMESTAMP NOT NULL,
CONSTRAINT "PK_service_config" PRIMARY KEY ("Id")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260713013128_AddServiceConfig') THEN
CREATE UNIQUE INDEX "IX_service_config_ServiceId" ON service_config ("ServiceId");
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260713013128_AddServiceConfig') THEN
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20260713013128_AddServiceConfig', '9.0.0');
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260804024643_AddUserPreference') THEN
CREATE TABLE user_preference (
"Id" bigint NOT NULL,
"UserId" bigint NOT NULL,
"Scope" character varying(64) NOT NULL,
"Payload" jsonb NOT NULL,
"RowVersion" integer NOT NULL,
"CreatedAt" TIMESTAMP NOT NULL,
"UpdatedAt" TIMESTAMP NOT NULL,
CONSTRAINT "PK_user_preference" PRIMARY KEY ("Id")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260804024643_AddUserPreference') THEN
CREATE UNIQUE INDEX "IX_user_preference_UserId_Scope" ON user_preference ("UserId", "Scope");
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260804024643_AddUserPreference') THEN
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20260804024643_AddUserPreference', '9.0.0');
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260804090000_ResetUserPreference') THEN
ALTER TABLE user_preference ALTER COLUMN "Scope" TYPE character varying(128);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260804090000_ResetUserPreference') THEN
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20260804090000_ResetUserPreference', '9.0.0');
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260825100000_ResetAdminPassword') THEN
UPDATE "user"
SET "Password" = 'Start12345', "UpdatedAt" = NOW()
WHERE "Username" = 'admin' AND "IsAdmin" AND NOT "Deleted";
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260825100000_ResetAdminPassword') THEN
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20260825100000_ResetAdminPassword', '9.0.0');
END IF;
END $EF$;
COMMIT;
@@ -1,268 +0,0 @@
-- MixingX SSO idempotent migration script (PostgreSQL)
-- Image tag: develop-v.1.0.1-202608280736-44
-- Generated by CI: dotnet ef migrations script --idempotent
-- Apply manually per ADR-0074 (生产 DB 变更全人工).
-- ===== ApplicationDbContext =====
CREATE TABLE IF NOT EXISTS "__EFMigrationsHistory" (
"MigrationId" character varying(150) NOT NULL,
"ProductVersion" character varying(32) NOT NULL,
CONSTRAINT "PK___EFMigrationsHistory" PRIMARY KEY ("MigrationId")
);
START TRANSACTION;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE "CAPLock" (
"Key" character varying(128) NOT NULL,
"Instance" character varying(256),
"LastLockTime" TIMESTAMP,
CONSTRAINT "PK_CAPLock" PRIMARY KEY ("Key")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE "CAPPublishedMessage" (
"Id" bigint GENERATED BY DEFAULT AS IDENTITY,
"Version" character varying(20),
"Name" character varying(200) NOT NULL,
"Content" TEXT,
"Retries" integer,
"Added" TIMESTAMP NOT NULL,
"ExpiresAt" TIMESTAMP,
"StatusName" character varying(40) NOT NULL,
CONSTRAINT "PK_CAPPublishedMessage" PRIMARY KEY ("Id")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE "CAPReceivedMessage" (
"Id" bigint GENERATED BY DEFAULT AS IDENTITY,
"Version" character varying(20),
"Name" character varying(400) NOT NULL,
"Group" character varying(200),
"Content" TEXT,
"Retries" integer,
"Added" TIMESTAMP NOT NULL,
"ExpiresAt" TIMESTAMP,
"StatusName" character varying(50) NOT NULL,
CONSTRAINT "PK_CAPReceivedMessage" PRIMARY KEY ("Id")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE role (
"Id" bigint NOT NULL,
"RoleName" character varying(100) NOT NULL,
"CreatedAt" TIMESTAMP NOT NULL,
"UpdatedAt" TIMESTAMP NOT NULL,
"Deleted" boolean NOT NULL,
"RowVersion" integer NOT NULL,
CONSTRAINT "PK_role" PRIMARY KEY ("Id")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE "user" (
"Id" bigint NOT NULL,
"Username" character varying(100) NOT NULL,
"Password" character varying(500) NOT NULL,
"Email" character varying(200),
"Phone" character varying(200),
"IsActive" boolean NOT NULL,
"IsAdmin" boolean NOT NULL,
"RowVersion" integer NOT NULL,
"CreatedAt" TIMESTAMP NOT NULL,
"UpdatedAt" TIMESTAMP NOT NULL,
"Deleted" boolean NOT NULL,
CONSTRAINT "PK_user" PRIMARY KEY ("Id")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE role_app_item (
"Id" bigint NOT NULL,
"AppId" character varying(100) NOT NULL,
"AppName" character varying(100) NOT NULL,
"Permissions" text[] NOT NULL,
role_id bigint NOT NULL,
CONSTRAINT "PK_role_app_item" PRIMARY KEY ("Id"),
CONSTRAINT "FK_role_app_item_role_role_id" FOREIGN KEY (role_id) REFERENCES role ("Id") ON DELETE CASCADE
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE user_role (
"Id" bigint NOT NULL,
"RoleId" bigint NOT NULL,
"RoleName" character varying(100) NOT NULL,
user_id bigint NOT NULL,
CONSTRAINT "PK_user_role" PRIMARY KEY ("Id"),
CONSTRAINT "FK_user_role_user_user_id" FOREIGN KEY (user_id) REFERENCES "user" ("Id") ON DELETE CASCADE
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE INDEX "IX_ExpiresAt_StatusName" ON "CAPPublishedMessage" ("ExpiresAt", "StatusName");
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE INDEX "IX_Version_ExpiresAt_StatusName" ON "CAPPublishedMessage" ("Version", "ExpiresAt", "StatusName");
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE INDEX "IX_ExpiresAt_StatusName1" ON "CAPReceivedMessage" ("ExpiresAt", "StatusName");
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE INDEX "IX_Version_ExpiresAt_StatusName1" ON "CAPReceivedMessage" ("Version", "ExpiresAt", "StatusName");
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE INDEX "IX_role_app_item_role_id" ON role_app_item (role_id);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE INDEX "IX_user_role_user_id" ON user_role (user_id);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20260526021536_Init', '9.0.0');
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260713013128_AddServiceConfig') THEN
CREATE TABLE service_config (
"Id" bigint NOT NULL,
"ServiceId" character varying(100) NOT NULL,
"ServiceName" character varying(100) NOT NULL,
"CreatedAt" TIMESTAMP NOT NULL,
"UpdatedAt" TIMESTAMP NOT NULL,
CONSTRAINT "PK_service_config" PRIMARY KEY ("Id")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260713013128_AddServiceConfig') THEN
CREATE UNIQUE INDEX "IX_service_config_ServiceId" ON service_config ("ServiceId");
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260713013128_AddServiceConfig') THEN
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20260713013128_AddServiceConfig', '9.0.0');
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260804024643_AddUserPreference') THEN
CREATE TABLE user_preference (
"Id" bigint NOT NULL,
"UserId" bigint NOT NULL,
"Scope" character varying(64) NOT NULL,
"Payload" jsonb NOT NULL,
"RowVersion" integer NOT NULL,
"CreatedAt" TIMESTAMP NOT NULL,
"UpdatedAt" TIMESTAMP NOT NULL,
CONSTRAINT "PK_user_preference" PRIMARY KEY ("Id")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260804024643_AddUserPreference') THEN
CREATE UNIQUE INDEX "IX_user_preference_UserId_Scope" ON user_preference ("UserId", "Scope");
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260804024643_AddUserPreference') THEN
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20260804024643_AddUserPreference', '9.0.0');
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260804090000_ResetUserPreference') THEN
ALTER TABLE user_preference ALTER COLUMN "Scope" TYPE character varying(128);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260804090000_ResetUserPreference') THEN
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20260804090000_ResetUserPreference', '9.0.0');
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260825100000_ResetAdminPassword') THEN
UPDATE "user"
SET "Password" = 'Start12345', "UpdatedAt" = NOW()
WHERE "Username" = 'admin' AND "IsAdmin" AND NOT "Deleted";
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260825100000_ResetAdminPassword') THEN
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20260825100000_ResetAdminPassword', '9.0.0');
END IF;
END $EF$;
COMMIT;
@@ -1,268 +0,0 @@
-- MixingX SSO idempotent migration script (PostgreSQL)
-- Image tag: develop-v.1.0.1-202608310638-45
-- Generated by CI: dotnet ef migrations script --idempotent
-- Apply manually per ADR-0074 (生产 DB 变更全人工).
-- ===== ApplicationDbContext =====
CREATE TABLE IF NOT EXISTS "__EFMigrationsHistory" (
"MigrationId" character varying(150) NOT NULL,
"ProductVersion" character varying(32) NOT NULL,
CONSTRAINT "PK___EFMigrationsHistory" PRIMARY KEY ("MigrationId")
);
START TRANSACTION;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE "CAPLock" (
"Key" character varying(128) NOT NULL,
"Instance" character varying(256),
"LastLockTime" TIMESTAMP,
CONSTRAINT "PK_CAPLock" PRIMARY KEY ("Key")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE "CAPPublishedMessage" (
"Id" bigint GENERATED BY DEFAULT AS IDENTITY,
"Version" character varying(20),
"Name" character varying(200) NOT NULL,
"Content" TEXT,
"Retries" integer,
"Added" TIMESTAMP NOT NULL,
"ExpiresAt" TIMESTAMP,
"StatusName" character varying(40) NOT NULL,
CONSTRAINT "PK_CAPPublishedMessage" PRIMARY KEY ("Id")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE "CAPReceivedMessage" (
"Id" bigint GENERATED BY DEFAULT AS IDENTITY,
"Version" character varying(20),
"Name" character varying(400) NOT NULL,
"Group" character varying(200),
"Content" TEXT,
"Retries" integer,
"Added" TIMESTAMP NOT NULL,
"ExpiresAt" TIMESTAMP,
"StatusName" character varying(50) NOT NULL,
CONSTRAINT "PK_CAPReceivedMessage" PRIMARY KEY ("Id")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE role (
"Id" bigint NOT NULL,
"RoleName" character varying(100) NOT NULL,
"CreatedAt" TIMESTAMP NOT NULL,
"UpdatedAt" TIMESTAMP NOT NULL,
"Deleted" boolean NOT NULL,
"RowVersion" integer NOT NULL,
CONSTRAINT "PK_role" PRIMARY KEY ("Id")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE "user" (
"Id" bigint NOT NULL,
"Username" character varying(100) NOT NULL,
"Password" character varying(500) NOT NULL,
"Email" character varying(200),
"Phone" character varying(200),
"IsActive" boolean NOT NULL,
"IsAdmin" boolean NOT NULL,
"RowVersion" integer NOT NULL,
"CreatedAt" TIMESTAMP NOT NULL,
"UpdatedAt" TIMESTAMP NOT NULL,
"Deleted" boolean NOT NULL,
CONSTRAINT "PK_user" PRIMARY KEY ("Id")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE role_app_item (
"Id" bigint NOT NULL,
"AppId" character varying(100) NOT NULL,
"AppName" character varying(100) NOT NULL,
"Permissions" text[] NOT NULL,
role_id bigint NOT NULL,
CONSTRAINT "PK_role_app_item" PRIMARY KEY ("Id"),
CONSTRAINT "FK_role_app_item_role_role_id" FOREIGN KEY (role_id) REFERENCES role ("Id") ON DELETE CASCADE
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE user_role (
"Id" bigint NOT NULL,
"RoleId" bigint NOT NULL,
"RoleName" character varying(100) NOT NULL,
user_id bigint NOT NULL,
CONSTRAINT "PK_user_role" PRIMARY KEY ("Id"),
CONSTRAINT "FK_user_role_user_user_id" FOREIGN KEY (user_id) REFERENCES "user" ("Id") ON DELETE CASCADE
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE INDEX "IX_ExpiresAt_StatusName" ON "CAPPublishedMessage" ("ExpiresAt", "StatusName");
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE INDEX "IX_Version_ExpiresAt_StatusName" ON "CAPPublishedMessage" ("Version", "ExpiresAt", "StatusName");
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE INDEX "IX_ExpiresAt_StatusName1" ON "CAPReceivedMessage" ("ExpiresAt", "StatusName");
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE INDEX "IX_Version_ExpiresAt_StatusName1" ON "CAPReceivedMessage" ("Version", "ExpiresAt", "StatusName");
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE INDEX "IX_role_app_item_role_id" ON role_app_item (role_id);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE INDEX "IX_user_role_user_id" ON user_role (user_id);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20260526021536_Init', '9.0.0');
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260713013128_AddServiceConfig') THEN
CREATE TABLE service_config (
"Id" bigint NOT NULL,
"ServiceId" character varying(100) NOT NULL,
"ServiceName" character varying(100) NOT NULL,
"CreatedAt" TIMESTAMP NOT NULL,
"UpdatedAt" TIMESTAMP NOT NULL,
CONSTRAINT "PK_service_config" PRIMARY KEY ("Id")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260713013128_AddServiceConfig') THEN
CREATE UNIQUE INDEX "IX_service_config_ServiceId" ON service_config ("ServiceId");
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260713013128_AddServiceConfig') THEN
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20260713013128_AddServiceConfig', '9.0.0');
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260804024643_AddUserPreference') THEN
CREATE TABLE user_preference (
"Id" bigint NOT NULL,
"UserId" bigint NOT NULL,
"Scope" character varying(64) NOT NULL,
"Payload" jsonb NOT NULL,
"RowVersion" integer NOT NULL,
"CreatedAt" TIMESTAMP NOT NULL,
"UpdatedAt" TIMESTAMP NOT NULL,
CONSTRAINT "PK_user_preference" PRIMARY KEY ("Id")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260804024643_AddUserPreference') THEN
CREATE UNIQUE INDEX "IX_user_preference_UserId_Scope" ON user_preference ("UserId", "Scope");
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260804024643_AddUserPreference') THEN
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20260804024643_AddUserPreference', '9.0.0');
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260804090000_ResetUserPreference') THEN
ALTER TABLE user_preference ALTER COLUMN "Scope" TYPE character varying(128);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260804090000_ResetUserPreference') THEN
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20260804090000_ResetUserPreference', '9.0.0');
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260825100000_ResetAdminPassword') THEN
UPDATE "user"
SET "Password" = 'Start12345', "UpdatedAt" = NOW()
WHERE "Username" = 'admin' AND "IsAdmin" AND NOT "Deleted";
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260825100000_ResetAdminPassword') THEN
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20260825100000_ResetAdminPassword', '9.0.0');
END IF;
END $EF$;
COMMIT;
@@ -1,268 +0,0 @@
-- MixingX SSO idempotent migration script (PostgreSQL)
-- Image tag: develop-v.1.0.1-202609020612-46
-- Generated by CI: dotnet ef migrations script --idempotent
-- Apply manually per ADR-0074 (生产 DB 变更全人工).
-- ===== ApplicationDbContext =====
CREATE TABLE IF NOT EXISTS "__EFMigrationsHistory" (
"MigrationId" character varying(150) NOT NULL,
"ProductVersion" character varying(32) NOT NULL,
CONSTRAINT "PK___EFMigrationsHistory" PRIMARY KEY ("MigrationId")
);
START TRANSACTION;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE "CAPLock" (
"Key" character varying(128) NOT NULL,
"Instance" character varying(256),
"LastLockTime" TIMESTAMP,
CONSTRAINT "PK_CAPLock" PRIMARY KEY ("Key")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE "CAPPublishedMessage" (
"Id" bigint GENERATED BY DEFAULT AS IDENTITY,
"Version" character varying(20),
"Name" character varying(200) NOT NULL,
"Content" TEXT,
"Retries" integer,
"Added" TIMESTAMP NOT NULL,
"ExpiresAt" TIMESTAMP,
"StatusName" character varying(40) NOT NULL,
CONSTRAINT "PK_CAPPublishedMessage" PRIMARY KEY ("Id")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE "CAPReceivedMessage" (
"Id" bigint GENERATED BY DEFAULT AS IDENTITY,
"Version" character varying(20),
"Name" character varying(400) NOT NULL,
"Group" character varying(200),
"Content" TEXT,
"Retries" integer,
"Added" TIMESTAMP NOT NULL,
"ExpiresAt" TIMESTAMP,
"StatusName" character varying(50) NOT NULL,
CONSTRAINT "PK_CAPReceivedMessage" PRIMARY KEY ("Id")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE role (
"Id" bigint NOT NULL,
"RoleName" character varying(100) NOT NULL,
"CreatedAt" TIMESTAMP NOT NULL,
"UpdatedAt" TIMESTAMP NOT NULL,
"Deleted" boolean NOT NULL,
"RowVersion" integer NOT NULL,
CONSTRAINT "PK_role" PRIMARY KEY ("Id")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE "user" (
"Id" bigint NOT NULL,
"Username" character varying(100) NOT NULL,
"Password" character varying(500) NOT NULL,
"Email" character varying(200),
"Phone" character varying(200),
"IsActive" boolean NOT NULL,
"IsAdmin" boolean NOT NULL,
"RowVersion" integer NOT NULL,
"CreatedAt" TIMESTAMP NOT NULL,
"UpdatedAt" TIMESTAMP NOT NULL,
"Deleted" boolean NOT NULL,
CONSTRAINT "PK_user" PRIMARY KEY ("Id")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE role_app_item (
"Id" bigint NOT NULL,
"AppId" character varying(100) NOT NULL,
"AppName" character varying(100) NOT NULL,
"Permissions" text[] NOT NULL,
role_id bigint NOT NULL,
CONSTRAINT "PK_role_app_item" PRIMARY KEY ("Id"),
CONSTRAINT "FK_role_app_item_role_role_id" FOREIGN KEY (role_id) REFERENCES role ("Id") ON DELETE CASCADE
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE user_role (
"Id" bigint NOT NULL,
"RoleId" bigint NOT NULL,
"RoleName" character varying(100) NOT NULL,
user_id bigint NOT NULL,
CONSTRAINT "PK_user_role" PRIMARY KEY ("Id"),
CONSTRAINT "FK_user_role_user_user_id" FOREIGN KEY (user_id) REFERENCES "user" ("Id") ON DELETE CASCADE
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE INDEX "IX_ExpiresAt_StatusName" ON "CAPPublishedMessage" ("ExpiresAt", "StatusName");
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE INDEX "IX_Version_ExpiresAt_StatusName" ON "CAPPublishedMessage" ("Version", "ExpiresAt", "StatusName");
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE INDEX "IX_ExpiresAt_StatusName1" ON "CAPReceivedMessage" ("ExpiresAt", "StatusName");
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE INDEX "IX_Version_ExpiresAt_StatusName1" ON "CAPReceivedMessage" ("Version", "ExpiresAt", "StatusName");
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE INDEX "IX_role_app_item_role_id" ON role_app_item (role_id);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE INDEX "IX_user_role_user_id" ON user_role (user_id);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20260526021536_Init', '9.0.0');
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260713013128_AddServiceConfig') THEN
CREATE TABLE service_config (
"Id" bigint NOT NULL,
"ServiceId" character varying(100) NOT NULL,
"ServiceName" character varying(100) NOT NULL,
"CreatedAt" TIMESTAMP NOT NULL,
"UpdatedAt" TIMESTAMP NOT NULL,
CONSTRAINT "PK_service_config" PRIMARY KEY ("Id")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260713013128_AddServiceConfig') THEN
CREATE UNIQUE INDEX "IX_service_config_ServiceId" ON service_config ("ServiceId");
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260713013128_AddServiceConfig') THEN
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20260713013128_AddServiceConfig', '9.0.0');
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260804024643_AddUserPreference') THEN
CREATE TABLE user_preference (
"Id" bigint NOT NULL,
"UserId" bigint NOT NULL,
"Scope" character varying(64) NOT NULL,
"Payload" jsonb NOT NULL,
"RowVersion" integer NOT NULL,
"CreatedAt" TIMESTAMP NOT NULL,
"UpdatedAt" TIMESTAMP NOT NULL,
CONSTRAINT "PK_user_preference" PRIMARY KEY ("Id")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260804024643_AddUserPreference') THEN
CREATE UNIQUE INDEX "IX_user_preference_UserId_Scope" ON user_preference ("UserId", "Scope");
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260804024643_AddUserPreference') THEN
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20260804024643_AddUserPreference', '9.0.0');
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260804090000_ResetUserPreference') THEN
ALTER TABLE user_preference ALTER COLUMN "Scope" TYPE character varying(128);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260804090000_ResetUserPreference') THEN
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20260804090000_ResetUserPreference', '9.0.0');
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260825100000_ResetAdminPassword') THEN
UPDATE "user"
SET "Password" = 'Start12345', "UpdatedAt" = NOW()
WHERE "Username" = 'admin' AND "IsAdmin" AND NOT "Deleted";
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260825100000_ResetAdminPassword') THEN
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20260825100000_ResetAdminPassword', '9.0.0');
END IF;
END $EF$;
COMMIT;
@@ -1,268 +0,0 @@
-- MixingX SSO idempotent migration script (PostgreSQL)
-- Image tag: develop-v.1.0.1-202609030134-47
-- Generated by CI: dotnet ef migrations script --idempotent
-- Apply manually per ADR-0074 (生产 DB 变更全人工).
-- ===== ApplicationDbContext =====
CREATE TABLE IF NOT EXISTS "__EFMigrationsHistory" (
"MigrationId" character varying(150) NOT NULL,
"ProductVersion" character varying(32) NOT NULL,
CONSTRAINT "PK___EFMigrationsHistory" PRIMARY KEY ("MigrationId")
);
START TRANSACTION;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE "CAPLock" (
"Key" character varying(128) NOT NULL,
"Instance" character varying(256),
"LastLockTime" TIMESTAMP,
CONSTRAINT "PK_CAPLock" PRIMARY KEY ("Key")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE "CAPPublishedMessage" (
"Id" bigint GENERATED BY DEFAULT AS IDENTITY,
"Version" character varying(20),
"Name" character varying(200) NOT NULL,
"Content" TEXT,
"Retries" integer,
"Added" TIMESTAMP NOT NULL,
"ExpiresAt" TIMESTAMP,
"StatusName" character varying(40) NOT NULL,
CONSTRAINT "PK_CAPPublishedMessage" PRIMARY KEY ("Id")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE "CAPReceivedMessage" (
"Id" bigint GENERATED BY DEFAULT AS IDENTITY,
"Version" character varying(20),
"Name" character varying(400) NOT NULL,
"Group" character varying(200),
"Content" TEXT,
"Retries" integer,
"Added" TIMESTAMP NOT NULL,
"ExpiresAt" TIMESTAMP,
"StatusName" character varying(50) NOT NULL,
CONSTRAINT "PK_CAPReceivedMessage" PRIMARY KEY ("Id")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE role (
"Id" bigint NOT NULL,
"RoleName" character varying(100) NOT NULL,
"CreatedAt" TIMESTAMP NOT NULL,
"UpdatedAt" TIMESTAMP NOT NULL,
"Deleted" boolean NOT NULL,
"RowVersion" integer NOT NULL,
CONSTRAINT "PK_role" PRIMARY KEY ("Id")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE "user" (
"Id" bigint NOT NULL,
"Username" character varying(100) NOT NULL,
"Password" character varying(500) NOT NULL,
"Email" character varying(200),
"Phone" character varying(200),
"IsActive" boolean NOT NULL,
"IsAdmin" boolean NOT NULL,
"RowVersion" integer NOT NULL,
"CreatedAt" TIMESTAMP NOT NULL,
"UpdatedAt" TIMESTAMP NOT NULL,
"Deleted" boolean NOT NULL,
CONSTRAINT "PK_user" PRIMARY KEY ("Id")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE role_app_item (
"Id" bigint NOT NULL,
"AppId" character varying(100) NOT NULL,
"AppName" character varying(100) NOT NULL,
"Permissions" text[] NOT NULL,
role_id bigint NOT NULL,
CONSTRAINT "PK_role_app_item" PRIMARY KEY ("Id"),
CONSTRAINT "FK_role_app_item_role_role_id" FOREIGN KEY (role_id) REFERENCES role ("Id") ON DELETE CASCADE
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE TABLE user_role (
"Id" bigint NOT NULL,
"RoleId" bigint NOT NULL,
"RoleName" character varying(100) NOT NULL,
user_id bigint NOT NULL,
CONSTRAINT "PK_user_role" PRIMARY KEY ("Id"),
CONSTRAINT "FK_user_role_user_user_id" FOREIGN KEY (user_id) REFERENCES "user" ("Id") ON DELETE CASCADE
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE INDEX "IX_ExpiresAt_StatusName" ON "CAPPublishedMessage" ("ExpiresAt", "StatusName");
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE INDEX "IX_Version_ExpiresAt_StatusName" ON "CAPPublishedMessage" ("Version", "ExpiresAt", "StatusName");
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE INDEX "IX_ExpiresAt_StatusName1" ON "CAPReceivedMessage" ("ExpiresAt", "StatusName");
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE INDEX "IX_Version_ExpiresAt_StatusName1" ON "CAPReceivedMessage" ("Version", "ExpiresAt", "StatusName");
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE INDEX "IX_role_app_item_role_id" ON role_app_item (role_id);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
CREATE INDEX "IX_user_role_user_id" ON user_role (user_id);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260526021536_Init') THEN
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20260526021536_Init', '9.0.0');
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260713013128_AddServiceConfig') THEN
CREATE TABLE service_config (
"Id" bigint NOT NULL,
"ServiceId" character varying(100) NOT NULL,
"ServiceName" character varying(100) NOT NULL,
"CreatedAt" TIMESTAMP NOT NULL,
"UpdatedAt" TIMESTAMP NOT NULL,
CONSTRAINT "PK_service_config" PRIMARY KEY ("Id")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260713013128_AddServiceConfig') THEN
CREATE UNIQUE INDEX "IX_service_config_ServiceId" ON service_config ("ServiceId");
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260713013128_AddServiceConfig') THEN
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20260713013128_AddServiceConfig', '9.0.0');
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260804024643_AddUserPreference') THEN
CREATE TABLE user_preference (
"Id" bigint NOT NULL,
"UserId" bigint NOT NULL,
"Scope" character varying(64) NOT NULL,
"Payload" jsonb NOT NULL,
"RowVersion" integer NOT NULL,
"CreatedAt" TIMESTAMP NOT NULL,
"UpdatedAt" TIMESTAMP NOT NULL,
CONSTRAINT "PK_user_preference" PRIMARY KEY ("Id")
);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260804024643_AddUserPreference') THEN
CREATE UNIQUE INDEX "IX_user_preference_UserId_Scope" ON user_preference ("UserId", "Scope");
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260804024643_AddUserPreference') THEN
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20260804024643_AddUserPreference', '9.0.0');
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260804090000_ResetUserPreference') THEN
ALTER TABLE user_preference ALTER COLUMN "Scope" TYPE character varying(128);
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260804090000_ResetUserPreference') THEN
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20260804090000_ResetUserPreference', '9.0.0');
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260825100000_ResetAdminPassword') THEN
UPDATE "user"
SET "Password" = 'Start12345', "UpdatedAt" = NOW()
WHERE "Username" = 'admin' AND "IsAdmin" AND NOT "Deleted";
END IF;
END $EF$;
DO $EF$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20260825100000_ResetAdminPassword') THEN
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20260825100000_ResetAdminPassword', '9.0.0');
END IF;
END $EF$;
COMMIT;
@@ -1,15 +0,0 @@
images:
backend:
repository: agent
tag: ""
frontend:
repository: agent-web
tag: ""
postgres:
repository: 192.168.1.119:8888/docker-proxy/library/postgres
tag: "17"
mqttCredentials:
- credentialRef: edge-main-mqtt
username: ""
password: ""
-4
View File
@@ -1,4 +0,0 @@
agents:
- id: main
description: 主 Agent
phaseType: ""
-21
View File
@@ -1,21 +0,0 @@
audit:
enabled: true
port: 5900
replicas: 1
database: audit-db
pgStorage: 5Gi
retentionMonths: 6
jwt:
ssoBaseUrl: http://sso-service:8080
mqtt:
image: 192.168.1.119:8888/docker-proxy/emqx/nanomq:0.25.2-2
brokerHost: audit-nanomq-service
brokerPort: 1883
managementPort: 8081
managementUsername: admin
managementPassword: "b093ca6f899a56a869a1cb44b9360ec2d333031969c36d8c"
consume:
queueCapacity: 128
queueMaxWaitMs: 5000
dbWriteTimeoutMs: 3000
concurrency: 2
@@ -1,21 +0,0 @@
images:
backend:
repository: edge
tag: ""
frontend:
repository: edge-web
tag: ""
mqtt:
enabled: true
image:
repository: 192.168.1.119:8888/docker-proxy/emqx/nanomq
tag: 0.25.2-2
port: 1883
wsPort: 8083
credentialRef: edge-main-mqtt
resources: {}
edgeSecrets:
root: /var/run/secrets/mixingx-edge
mounts: []
-4
View File
@@ -1,4 +0,0 @@
edges:
- id: main
idWorkerId: 17
description: 主 Edge
@@ -1,7 +0,0 @@
gateway:
port: 8080
replicas: 1
rbac: true
ingress:
enabled: false
@@ -1,37 +0,0 @@
registry: 192.168.1.119:8888/mixingx
tag: develop-v.1.0.1-202607100034-13
timezone: Asia/Shanghai
images:
gateway:
repository: gateway
tag: develop-v.1.0.1-202608050744-6
sso:
repository: sso
tag: develop-v.1.0.1-202609030134-47
ssoWeb:
repository: sso-web
tag: develop-v.1.0.1-202609030134-47
ultra:
repository: ultra
tag: develop-v.1.0.1-202609030137-44
ultraWeb:
repository: ultra-web
tag: develop-v.1.0.1-202609030137-44
audit:
repository: audit
tag: develop-v.1.0.1-202608310641-11
auditWeb:
repository: audit-web
tag: develop-v.1.0.1-202608310641-11
edge:
repository: edge
tag: develop-v.1.0.1-202608280807-46
edgeWeb:
repository: edge-web
tag: develop-v.1.0.1-202608280807-46
agent:
repository: agent
tag: develop-v.1.0.1-202609030136-94
agentWeb:
repository: agent-web
tag: develop-v.1.0.1-202609030136-94
-11
View File
@@ -1,11 +0,0 @@
sharedDatastores:
- name: redis
image: 192.168.1.119:8888/docker-proxy/library/redis:8.6
port: 6379
storage: 2Gi
mountPath: /data
- name: messaging
image: 192.168.1.119:8888/docker-proxy/library/rabbitmq:4.3-management
port: 5672
storage: 2Gi
mountPath: /var/lib/rabbitmq
@@ -1,12 +0,0 @@
# network-agent(设备网络控制台):每节点 DaemonSet,提供主机网口与 WiFi 配置 API(:9750)
# 前置条件:节点已执行 chart 仓 scripts/provision-host.sh(安装并托管 NetworkManager)
image:
tag: develop-v.1.0.1-202609040715-3
# 鉴权令牌:为空 = 不鉴权(仅限内网联调)。
# 配置后前端弹窗请求头需带 Authorization: Bearer <token>(当前前端未实现,保持为空)
authToken: ""
corsOrigins: "*"
rollbackTimeoutSeconds: 60
k3sRestartOnIpChange: true
@@ -1,41 +0,0 @@
timezone: Asia/Shanghai
storage:
className: longhorn
size: 5Gi
keep: true
sharedInfra:
ultra:
host: ultra-service
port: 8080
postgres:
image: 192.168.1.119:8888/docker-proxy/library/postgres:17
username: postgres
password: "585ef774ffcf0b8704d3767c4e97bc6f1ec48066b8f2b7f1"
port: 5432
redis:
host: redis-service
port: 6379
password: "1dea4def9d1755061f671fd38583337b21c6bf887fd1f935"
rabbitmq:
host: messaging-service
port: 5672
username: mixingx
password: "8a322bf86129110552cbbe0369f0ccc263c67b9fb54ce9cc"
otlp:
endpoint: http://k8s-dashboard-service:18889
protocol: grpc
images:
postgres:
repository: 192.168.1.119:8888/docker-proxy/library/postgres
tag: "17"
audit:
publisher:
enabled: true
brokerUrl: mqtt://audit-nanomq-service:1883
tier:
enabled: false
-9
View File
@@ -1,9 +0,0 @@
sso:
name: sso
role: sso
serviceId: sso
database: sso-db
pgStorage: 10Gi
replicas: 1
description: 统一登录
webBasePath: /sso/
@@ -1,9 +0,0 @@
ultra:
name: ultra
role: ultra
serviceId: ultra
database: ultra-db
pgStorage: 10Gi
replicas: 1
description: Ultra 看板
webBasePath: /ultra/
@@ -19,6 +19,7 @@ sharedInfra:
username: postgres
password: "Admin12345"
port: 5432
idleInTransactionSessionTimeout: 60s
redis:
host: redis-service
port: 6379
@@ -40,3 +41,4 @@ mqttCredentials:
audit:
publisher:
enabled: true
+24
View File
@@ -0,0 +1,24 @@
# MixingX code-server — demo 环境 values
# 测试版浏览器 IDE;镜像 mixingx/codeserver(mxcicd 构建,预装插件,不走 image-version.yaml 的 images 机制)。
# 密码为部署时随机生成(明文,家规同 postgres/redis);修改后 ArgoCD 自动滚动重启生效。
codeserver:
name: codeserver
replicas: 1
description: "浏览器版 VS Code(测试,demo)"
image:
repository: 192.168.1.119:8888/mixingx/codeserver
tag: v0.2.0
password: "4V21baEkh3C6jOLetFcgVD9mDF6uPs1S"
storage:
className: local-path
size: 5Gi
keep: true
ingress:
enabled: true
className: traefik
host: codeserver.mixingx.local
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: web
+10
View File
@@ -2,6 +2,16 @@ edges:
- id: demo
idWorkerId: 17
description: Demo Edge
# ADS Router 本方身份:显式分配,重启不变,绝不从 Pod IP 推导。
# localNetId 第 4 字节与 idWorkerId 对齐便于记忆;列表内前 4 字节互异(10.200.0.17 / 10.200.0.18)。
adsRouter:
localNetId: "10.200.0.17.1.1"
# 运维占位:demo 集群节点出站地址,两 Edge 同出口(多 Edge 同出口验收场景);
# 上线前按现场 PLC 可回程的实际地址核实替换。
publicAddress: "192.168.1.173"
- id: demo-2
idWorkerId: 18
description: Demo Edge 2
adsRouter:
localNetId: "10.200.0.18.1.1"
publicAddress: "192.168.1.173" # 同 demo:运维占位,两 Edge 同出口
+16 -16
View File
@@ -4,50 +4,50 @@ timezone: Asia/Shanghai
images:
gateway:
repository: gateway
tag: develop-v.1.0.1-202608050744-6
tag: develop-v.1.0.1-202611170743-6
sso:
repository: sso
tag: develop-v.1.0.1-202609030134-47
tag: develop-v.1.0.1-202611170744-9
ssoWeb:
repository: sso-web
tag: develop-v.1.0.1-202609030134-47
tag: develop-v.1.0.1-202611170744-9
ultra:
repository: ultra
tag: develop-v.1.0.1-202609030137-44
tag: develop-v.1.0.1-202611170745-9
ultraWeb:
repository: ultra-web
tag: develop-v.1.0.1-202609030137-44
tag: develop-v.1.0.1-202611170745-9
audit:
repository: audit
tag: develop-v.1.0.1-202608310641-11
tag: develop-v.1.0.1-202611170746-8
edge:
repository: edge
tag: develop-v.1.0.1-202608280807-46
tag: develop-v.1.0.1-202611170748-14
edgeWeb:
repository: edge-web
tag: develop-v.1.0.1-202608280807-46
tag: develop-v.1.0.1-202611170748-14
agent:
repository: agent
tag: develop-v.1.0.1-202609030136-94
tag: develop-v.1.0.1-202611170746-15
agentWeb:
repository: agent-web
tag: develop-v.1.0.1-202609030136-94
tag: develop-v.1.0.1-202611170746-15
protocol:
opcua:
repository: opcua
tag: develop-v.1.0.1-202608200840-21
tag: develop-v.1.0.1-202611030041-1
modbus:
repository: modbus
tag: develop-v.1.0.1-202608200840-21
tag: develop-v.1.0.1-202611030041-1
ads:
repository: ads
tag: develop-v.1.0.1-202608200840-21
tag: develop-v.1.0.1-202611030041-1
s7:
repository: s7
tag: develop-v.1.0.1-202608200840-21
tag: develop-v.1.0.1-202611030041-1
s7-diecast:
repository: s7-diecast
tag: develop-v.1.0.1-202608200840-21
tag: develop-v.1.0.1-202611030041-1
auditWeb:
repository: audit-web
tag: develop-v.1.0.1-202608310641-11
tag: develop-v.1.0.1-202611170746-8
@@ -0,0 +1,6 @@
image:
tag: develop-v.1.0.1-202611170748-6
authToken: ''
corsOrigins: '*'
rollbackTimeoutSeconds: 60
k3sRestartOnIpChange: true
@@ -17,6 +17,7 @@ sharedInfra:
username: postgres
password: "Admin12345"
port: 5432
idleInTransactionSessionTimeout: 60s
redis:
host: redis-service
port: 6379
+5
View File
@@ -3,3 +3,8 @@ edges:
idWorkerId: 17
description: Dev Edge
nodeLabel: node2
# ADS Router 本方身份,契约同 demo(本环境模板停用,仅维护契约);
# 第三字节取 1 与 demo 环境(10.200.0.*)区分作用域。
adsRouter:
localNetId: "10.200.1.17.1.1"
publicAddress: "192.168.1.173" # 运维占位,启用前按现场核实替换