Skip to content

Commit

Permalink
Merge pull request #439 from glazychev-art/add_metadata
Browse files Browse the repository at this point in the history
Add metadata chain element
  • Loading branch information
denis-tingaikin committed May 18, 2023
2 parents 5a94d88 + f86f47c commit d63696e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/registry/chains/registryk8s/registry-k8s.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020-2022 Doc.ai and/or its affiliates.
//
// Copyright (c) 2022 Cisco and/or its affiliates.
// Copyright (c) 2022-2023 Cisco and/or its affiliates.
//
// SPDX-License-Identifier: Apache-2.0
//
Expand Down Expand Up @@ -39,6 +39,7 @@ import (
"github.com/networkservicemesh/sdk/pkg/registry/common/updatepath"
"github.com/networkservicemesh/sdk/pkg/registry/core/chain"
"github.com/networkservicemesh/sdk/pkg/registry/switchcase"
"github.com/networkservicemesh/sdk/pkg/registry/utils/metadata"
"github.com/networkservicemesh/sdk/pkg/tools/interdomain"
"github.com/networkservicemesh/sdk/pkg/tools/token"

Expand Down Expand Up @@ -132,6 +133,7 @@ func NewServer(config *Config, tokenGenerator token.GeneratorFunc, options ...Op
updatepath.NewNetworkServiceEndpointRegistryServer(tokenGenerator),
opts.authorizeNSERegistryServer,
begin.NewNetworkServiceEndpointRegistryServer(),
metadata.NewNetworkServiceEndpointServer(),
switchcase.NewNetworkServiceEndpointRegistryServer(switchcase.NSEServerCase{
Condition: func(c context.Context, nse *registry.NetworkServiceEndpoint) bool {
if interdomain.Is(nse.GetName()) {
Expand Down Expand Up @@ -174,6 +176,7 @@ func NewServer(config *Config, tokenGenerator token.GeneratorFunc, options ...Op
grpcmetadata.NewNetworkServiceRegistryServer(),
updatepath.NewNetworkServiceRegistryServer(tokenGenerator),
opts.authorizeNSRegistryServer,
metadata.NewNetworkServiceServer(),
setpayload.NewNetworkServiceRegistryServer(),
switchcase.NewNetworkServiceRegistryServer(
switchcase.NSServerCase{
Expand Down

0 comments on commit d63696e

Please sign in to comment.