feat(gitops): Edge 实例 ADS Router 身份透传(demo/dev 契约同步)
environments/{demo,dev}/edges.yaml 实例条目增 adsRouter 身份:demo=10.200.0.17.1.1 /
demo-2=10.200.0.18.1.1(前 4 字节互异,第 4 位对齐 idWorkerId 便于记忆;publicAddress=
192.168.1.173 为运维占位,同出口=多 Edge 同出口验收场景,YAML 注释已标)。ApplicationSet
values 模板 hasKey 守卫透传 adsRouter 块;实例缺身份时经 chart 渲染守卫显式失败
(no shared default identity)。dev 停用模板契约同步,未启用。远端清单仍由 Edge
SQLite/UI 管理,部署 values 不回写覆盖。渲染证据 hub docs/research/evidence/
2026-10-10-ads-router-impl/W9-*.md
This commit is contained in:
1 parent
3e172f81e2
commit
e3552039d6
4 files changed
+41
-1
No files matched your search
@@ -39,6 +39,19 @@ spec:
|
||||
nodeSelector:
|
||||
mixingx.io/edge-node: "{{ .nodeLabel }}"
|
||||
{{- end }}
|
||||
{{- /* ADS Router 逐实例身份透传(chart 默认 enabled=true):实例缺 adsRouter
|
||||
身份时不在此兜底,由 chart 渲染守卫明确拒绝。 */ -}}
|
||||
{{- if hasKey . "adsRouter" }}
|
||||
adsRouter:
|
||||
localNetId: "{{ .adsRouter.localNetId }}"
|
||||
publicAddress: "{{ .adsRouter.publicAddress }}"
|
||||
{{- if hasKey .adsRouter "clientEndPoint" }}
|
||||
clientEndPoint: "{{ .adsRouter.clientEndPoint }}"
|
||||
{{- end }}
|
||||
{{- if hasKey .adsRouter "externalPort" }}
|
||||
externalPort: {{ .adsRouter.externalPort }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
- repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
|
||||
targetRevision: master
|
||||
ref: values
|
||||
|
||||
@@ -35,10 +35,22 @@ spec:
|
||||
site: "{{ .id }}"
|
||||
idWorkerId: {{ .idWorkerId }}
|
||||
description: "{{ .description }}"
|
||||
{{- if .nodeLabel }}
|
||||
{{- if hasKey . "nodeLabel" }}
|
||||
nodeSelector:
|
||||
mixingx.io/edge-node: "{{ .nodeLabel }}"
|
||||
{{- end }}
|
||||
{{- /* ADS Router 逐实例身份透传,契约同 demo(本模板保持停用)。 */ -}}
|
||||
{{- if hasKey . "adsRouter" }}
|
||||
adsRouter:
|
||||
localNetId: "{{ .adsRouter.localNetId }}"
|
||||
publicAddress: "{{ .adsRouter.publicAddress }}"
|
||||
{{- if hasKey .adsRouter "clientEndPoint" }}
|
||||
clientEndPoint: "{{ .adsRouter.clientEndPoint }}"
|
||||
{{- end }}
|
||||
{{- if hasKey .adsRouter "externalPort" }}
|
||||
externalPort: {{ .adsRouter.externalPort }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
- repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
|
||||
targetRevision: master
|
||||
ref: values
|
||||
|
||||
Reference in new issue
Block a user