feat(agent): 支持 AGENT_PHASE_TYPE 注入(对齐 apphost WithPhaseType)

- mixingx-agent-unit: values 加 phaseType 字段,unit.yaml ConfigMap 渲染 AGENT_PHASE_TYPE
- 根 chart _backend.tpl: agent 分支渲染 AGENT_PHASE_TYPE
- 根 chart instances.yaml: 遍历 agents 时透传 phaseType
- 空 phaseType 不渲染(向后兼容)

对应 apphost.cs WithPhaseType 扩展,k8s 部署侧此前缺失此环境变量,
导致 agent 启动读不到工序类型,触发 ultra 阶段6 扫码校验 Fail。
This commit is contained in:
ximenchuifeng committed 2026-07-07 16:43:20 +08:00
1 parent f677ca8206
commit aeb34d1e5b
4 files changed
+10 -1

No files matched your search

+3
View File
@@ -138,6 +138,9 @@ data:
{{- if .serviceId }}
{{- if hasPrefix "agent" .name }}
AGENT_SERVICE_ID: "{{ .serviceId }}"
{{- if .phaseType }}
AGENT_PHASE_TYPE: "{{ .phaseType }}"
{{- end }}
{{- else if hasPrefix "edge" .name }}
EDGE_SERVICE_ID: "{{ .serviceId }}"
{{- else if hasPrefix "sso" .name }}