Skip to content

Commit b57fb03

Browse files
committed
[backplane] Set envoy.NodeMetadata from Proxy reconciler
1 parent 6774c8f commit b57fb03

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

pkg/backplane/controllers/proxy.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ type ProxyReconciler struct {
3939

4040
proxyName string
4141
replicaName string
42-
localPrivAddr netip.Addr
42+
privateAddr netip.Addr
4343
apiServerHost string
4444

4545
options *options
@@ -126,7 +126,7 @@ func NewProxyReconciler(
126126
c client.Client,
127127
proxyName string,
128128
replicaName string,
129-
localPrivAddr netip.Addr,
129+
privateAddr netip.Addr,
130130
apiServerHost string,
131131
opts ...Option,
132132
) *ProxyReconciler {
@@ -139,7 +139,7 @@ func NewProxyReconciler(
139139
Client: c,
140140
proxyName: proxyName,
141141
replicaName: replicaName,
142-
localPrivAddr: localPrivAddr,
142+
privateAddr: privateAddr,
143143
apiServerHost: apiServerHost,
144144
options: sOpts,
145145
}
@@ -220,6 +220,10 @@ func (r *ProxyReconciler) Reconcile(ctx context.Context, request reconcile.Reque
220220
envoy.WithMinDrainTime(&p.Spec.Shutdown.MinimumDrainTime.Duration),
221221
envoy.WithAdminHost(adminHost),
222222
envoy.WithLogsDir("/var/log/apoxy"),
223+
envoy.WithNodeMetadata(&envoy.NodeMetadata{
224+
Name: r.replicaName,
225+
PrivateAddress: r.privateAddr.String(),
226+
}),
223227
}
224228
if r.options.releaseURL != "" {
225229
opts = append(opts, envoy.WithRelease(&envoy.URLRelease{

0 commit comments

Comments
 (0)