Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: Laszlo Kiraly <laszlo.kiraly@est.tech>
  • Loading branch information
ljkiraly committed Jan 28, 2022
1 parent fa4c3f2 commit 2d68bca
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ import (
"github.com/networkservicemesh/sdk/pkg/networkservice/chains/endpoint"
"github.com/networkservicemesh/sdk/pkg/networkservice/common/authorize"
registryclient "github.com/networkservicemesh/sdk/pkg/registry/chains/client"
"github.com/networkservicemesh/sdk/pkg/registry/common/sendfd"
"github.com/networkservicemesh/sdk/pkg/tools/grpcutils"
"github.com/networkservicemesh/sdk/pkg/tools/log"
"github.com/networkservicemesh/sdk/pkg/tools/log/logruslogger"
Expand Down Expand Up @@ -415,7 +416,12 @@ func registerEndpoint(ctx context.Context, cfg *Config, source *workloadapi.X509
),
)

registryClient := registryclient.NewNetworkServiceEndpointRegistryClient(ctx, &cfg.ConnectTo, registryclient.WithDialOptions(clientOptions...))
registryClient := registryclient.NewNetworkServiceEndpointRegistryClient(ctx, &cfg.ConnectTo,
registryclient.WithDialOptions(clientOptions...),
registryclient.WithNSEAdditionalFunctionality(
sendfd.NewNetworkServiceEndpointRegistryClient(),
),
)
_, err := registryClient.Register(ctx, &registryapi.NetworkServiceEndpoint{
Name: cfg.Name,
NetworkServiceLabels: map[string]*registryapi.NetworkServiceLabels{
Expand Down

0 comments on commit 2d68bca

Please sign in to comment.