Skip to content

Commit 73869d3

Browse files
committed
fix: add AEG_NODE_ID env var for backward compat with old dataplane images
Commit b91b087 renamed AEG_NODE_ID to NANTIAN_GW_NODE_ID in the dataplane config code, but CI tests use pinned dataplane images that still read the old AEG_NODE_ID env var. Without it, the dataplane falls back to the static config value 'dp-kind', which never matches the pod name, making the node never eligible for managed EndpointSlices. Add both env vars pointing to metadata.name so both old and new dataplane images correctly identify the node.
1 parent fc94302 commit 73869d3

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

configs/dataplane/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ accessLog:
3232
sampleRate: 0.01
3333
routeAnnotationPrefix: "gateway.nantian.dev/access-log-"
3434
runtime:
35-
httpListenAddr: "0.0.0.0:10080"
35+
httpListenAddr: "0.0.0.0:80"
3636
enableIpv6: true
3737
enableHttp3: false
3838
tlsMinVersion: "1.2"

deploy/kubernetes/base/dataplane.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,17 @@ spec:
5353
image: nantian-dataplane:dev
5454
imagePullPolicy: Always
5555
env:
56+
# NANTIAN_GW_NODE_ID is the canonical name; keep AEG_NODE_ID for
57+
# backward compatibility with older dataplane images that predate
58+
# the AEG_* → NANTIAN_GW_* rename.
5659
- name: NANTIAN_GW_NODE_ID
5760
valueFrom:
5861
fieldRef:
5962
fieldPath: metadata.name
63+
- name: AEG_NODE_ID
64+
valueFrom:
65+
fieldRef:
66+
fieldPath: metadata.name
6067
args:
6168
- "--config"
6269
- "/etc/nantian-gw/config.yaml"

0 commit comments

Comments
 (0)