feat(mixingx-agent-unit): 简化PostgreSQL配置并移除角色预置逻辑

- 将PostgreSQL配置简化为单一用户名和密码模式,移除了管理员用户和应用用户的分离机制
- 移除了复杂的PostgreSQL角色预置SQL文件和相关的initContainer逻辑
- 直接通过连接字符串设置idle_in_transaction_session_timeout参数
- 更新版本号从1.0.2到1.0.3
- 移除了对预创建PostgreSQL凭证Secret的依赖
This commit is contained in:
王野 committed 2026-09-05 15:18:59 +08:00
1 parent 5bc1b52721
commit 4e517797e1
7 files changed
+15 -203

No files matched your search

+5 -7
View File
@@ -6,12 +6,11 @@ Deploys one agent site as one Helm release:
- `agent-web-<site>` frontend
- `agent-<site>-postgres` StatefulSet and retained PVC
The release requires a pre-created PostgreSQL credentials Secret. By default its
name is `agent-<site>-postgres-credentials`; the required keys are
`admin-password`, `app-password`, and `connection-string`. The Agent connection
string must use `sharedInfra.postgres.appUsername`, while the init container uses
the administrator credential only to idempotently provision the non-superuser
application role and its database-local idle transaction timeout.
Agent PostgreSQL sessions set `idle_in_transaction_session_timeout` through the
connection string. The default is `60s`, configurable with
`sharedInfra.postgres.idleInTransactionSessionTimeout`. This is a database-side
safety net for leaked idle transactions and does not change database users,
passwords, roles, or the PostgreSQL StatefulSet credential model.
Example:
@@ -21,6 +20,5 @@ helm upgrade --install mixingx-agent-workshop-a ./charts/mixingx-agent-unit \
--set site=workshop-a \
--set nodeName=agent-node-01 \
--set storage.className=longhorn \
--set sharedInfra.postgres.appUsername=agent_workshop_a \
--set tag=2026.07.02-abc1234
```