Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: bitliu <[email protected]>
  • Loading branch information
Xunzhuo committed Nov 17, 2023
1 parent 974b515 commit 5623d6d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/xds/translator/translator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 5623d6d

Please sign in to comment.