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:
1 parent
c9ae79cae1
commit
93a1505f4a
4 files changed
+5
No files matched your search
@@ -34,6 +34,7 @@ spec:
|
|||||||
values: |
|
values: |
|
||||||
site: "{{ .id }}"
|
site: "{{ .id }}"
|
||||||
description: "{{ .description }}"
|
description: "{{ .description }}"
|
||||||
|
phaseType: "{{ .phaseType }}"
|
||||||
{{- if .nodeLabel }}
|
{{- if .nodeLabel }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
mixingx.io/edge-node: "{{ .nodeLabel }}"
|
mixingx.io/edge-node: "{{ .nodeLabel }}"
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ spec:
|
|||||||
values: |
|
values: |
|
||||||
site: "{{ .id }}"
|
site: "{{ .id }}"
|
||||||
description: "{{ .description }}"
|
description: "{{ .description }}"
|
||||||
|
phaseType: "{{ .phaseType }}"
|
||||||
{{- if .nodeLabel }}
|
{{- if .nodeLabel }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
mixingx.io/edge-node: "{{ .nodeLabel }}"
|
mixingx.io/edge-node: "{{ .nodeLabel }}"
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
agents:
|
agents:
|
||||||
- id: demo
|
- id: demo
|
||||||
description: Demo Agent
|
description: Demo Agent
|
||||||
|
phaseType: DieCasting # 工序类型(注入 AGENT_PHASE_TYPE)
|
||||||
nodeLabel: node1
|
nodeLabel: node1
|
||||||
- id: demo-2
|
- id: demo-2
|
||||||
description: Demo Agent 2
|
description: Demo Agent 2
|
||||||
|
phaseType: Passivation # 第二个 agent 用不同工序,验证多实例工序级隔离
|
||||||
nodeLabel: node2
|
nodeLabel: node2
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
agents:
|
agents:
|
||||||
- id: demo
|
- id: demo
|
||||||
description: Dev Agent
|
description: Dev Agent
|
||||||
|
phaseType: DieCasting # 工序类型(注入 AGENT_PHASE_TYPE),对应 apphost WithPhaseType
|
||||||
nodeLabel: node1
|
nodeLabel: node1
|
||||||
Reference in new issue
Block a user