chore(deploy): hold sagent off until its admin key exists
sagent.enabled was true with only baseUrl set, and the new config
validation refuses to start a host without an admin key:
Error: loading configuration
Caused by: config validation failed: sagent.admin_key must not be empty
when sagent is enabled
That is what killed the rollout of sha-510cdb9 - the new apihost pod
crash-looped, the Deployment missed its progress deadline and the release
auto-rolled back - so the flag goes to false to let the code land.
agent.gitdata.ai is outside this cluster, so the key can only come from
that platform. To turn it back on: put APP_SAGENT__ADMIN_KEY in
PROD_SECRET_VALUES (secret.env reaches every host through envFrom, no
chart change needed - the same path APP_PUSH__VAPID_PRIVATE_KEY uses) and
set enabled back to true here.
ZhenYi committed
Modified deploy/values/prod.yaml deploy/values/prod.yaml +5 −1 View deploy/values/prod.yaml
@@ -160,7 +160,11 @@
160160 outputLanguage: "zh-CN"
161161
162162sagent:
163 enabled: true
163 # 暂时关闭:sagent 的 admin_key 是必填项(config 校验会拒绝空值),
164 # 而 agent.gitdata.ai 是集群外的服务,密钥只能由对方平台提供。
165 # 拿到 key 后:写进 PROD_SECRET_VALUES 的 APP_SAGENT__ADMIN_KEY
166 # (secret.env 走 envFrom,不需要改 chart),再把这里改回 true。
167 enabled: false
164168 baseUrl: "https://agent.gitdata.ai"
165169
166170aihost: