fix: 支持 AgentRun render-only REST 入口 (#170)

Co-authored-by: AgentRun Codex <agentrun-codex@users.noreply.github.com>
This commit is contained in:
Lyon
2026-06-11 15:39:52 +08:00
committed by GitHub
parent 83a303959e
commit 8cf6534bec
12 changed files with 338 additions and 12 deletions
+2 -2
View File
@@ -37,7 +37,7 @@
| Argo CD AppProject | `argocd/agentrun-v01` |
| Argo CD Application | `argocd/agentrun-g14-v01` |
公网入口暂不作为 `v0.1` 必备规格。若后续需要 UniDesk/HWLAB 跨服务入口,必须在本仓库新增受审查的 ingress/FRP/edge spec不得临时固化 NodePort、host port、pod IP一次性 port-forward。
`v0.1` manager 允许按仓库声明的 FRP TCP 暴露给 UniDesk render-only client`deploy/deploy.json``managerPublicExposure` 是 GitOps 渲染真相,当前把 `agentrun-mgr.agentrun-v01.svc.cluster.local:8080` 通过 `agentrun-v01-frpc` 暴露到 master `127.0.0.1:22880`,公共 URL 为 `https://agentrun.74-48-78-17.nip.io/`。master 侧 frps allow port 与 Caddy vhost 由 UniDesk `config/agentrun.yaml``bun scripts/cli.ts agentrun control-plane expose --confirm` 维护,模式对齐 Sub2API;本仓库只渲染 G14 runtime 内的 frpc Deployment/ConfigMap。不得临时固化 NodePort、host port、pod IP一次性 port-forward,或增加 HWLAB 转发层
## Bun + TypeScript CI 边界
@@ -117,7 +117,7 @@ Env identity 的输入至少包含:`imageRef.repoUrl`、`imageRef.commitId`、
- replica、resource request/limit、health path、ports、env key、ConfigMap/SecretRef 名称和 key。
- runtime namespace、ServiceAccount、RBAC intent、PVC intent、NetworkPolicy intent。
- Postgres 和 Code Agent provider 的 SecretRef 名称、key 名称与 mount/env intentSecret 值不在 source 或 GitOps 中出现。
- public/ingress intent 的声明占位;`v0.1` 默认不要求公网入口
- `managerPublicExposure` FRP intent,用于 UniDesk render-only client 直连 AgentRun REST;只允许声明 proxy name、FRP server、ClusterIP local target、remote port、public HTTPS URL 和 master local URL,不承载 master Caddy 配置
禁止写入 `deploy/deploy.json` 的内容: