From 1dc8f0d6e324a55d3eeca38879c6f299bc5f59d0 Mon Sep 17 00:00:00 2001 From: bitliu Date: Fri, 3 Nov 2023 16:20:21 +0800 Subject: [PATCH] update Signed-off-by: bitliu --- internal/xds/translator/translator.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/xds/translator/translator.go b/internal/xds/translator/translator.go index e65e8cac08a2..fe6c556cdf37 100644 --- a/internal/xds/translator/translator.go +++ b/internal/xds/translator/translator.go @@ -20,8 +20,10 @@ import ( resourcev3 "github.com/envoyproxy/go-control-plane/pkg/resource/v3" "github.com/tetratelabs/multierror" + "github.com/envoyproxy/gateway/api/v1alpha1" extensionTypes "github.com/envoyproxy/gateway/internal/extension/types" "github.com/envoyproxy/gateway/internal/ir" + "github.com/envoyproxy/gateway/internal/logging" "github.com/envoyproxy/gateway/internal/xds/types" ) @@ -415,6 +417,9 @@ func addXdsCluster(tCtx *types.ResourceVersionTable, args *xdsClusterArgs) error xdsCluster := buildXdsCluster(args) xdsEndpoints := buildXdsClusterLoadAssignment(args.name, args.settings) + + logging.DefaultLogger(v1alpha1.LogLevelInfo).Info("cluster", "xdsEndpoints", xdsEndpoints, "xdsCluster", xdsCluster, "endpoint type", args.endpointType, "args", args) + // Use EDS for static endpoints if args.endpointType == Static { if err := tCtx.AddXdsResource(resourcev3.EndpointType, xdsEndpoints); err != nil {