feat(agent): agent 实例注入 AGENT_PHASE_TYPE(phaseType 字段)

- environments/{dev,demo}/agents.yaml: 每个 agent 加 phaseType(DieCasting/Passivation)
- applications/{dev,demo}/agents.yaml: ApplicationSet values 透传 phaseType → chart
- 配合 mixingx-chart 修复,k8s 部署的 agent 终于能拿到 AGENT_PHASE_TYPE
This commit is contained in:
ximenchuifeng committed 2026-07-07 16:43:20 +08:00
1 parent c9ae79cae1
commit 93a1505f4a
4 files changed
+5

No files matched your search

+1
View File
@@ -34,6 +34,7 @@ spec:
values: |
site: "{{ .id }}"
description: "{{ .description }}"
phaseType: "{{ .phaseType }}"
{{- if .nodeLabel }}
nodeSelector:
mixingx.io/edge-node: "{{ .nodeLabel }}"
+1
View File
@@ -34,6 +34,7 @@ spec:
values: |
site: "{{ .id }}"
description: "{{ .description }}"
phaseType: "{{ .phaseType }}"
{{- if .nodeLabel }}
nodeSelector:
mixingx.io/edge-node: "{{ .nodeLabel }}"
+2
View File
@@ -1,7 +1,9 @@
agents:
- id: demo
description: Demo Agent
phaseType: DieCasting # 工序类型(注入 AGENT_PHASE_TYPE)
nodeLabel: node1
- id: demo-2
description: Demo Agent 2
phaseType: Passivation # 第二个 agent 用不同工序,验证多实例工序级隔离
nodeLabel: node2
+1
View File
@@ -1,4 +1,5 @@
agents:
- id: demo
description: Dev Agent
phaseType: DieCasting # 工序类型(注入 AGENT_PHASE_TYPE),对应 apphost WithPhaseType
nodeLabel: node1