Skip to content

Commit

Permalink
Merge pull request #294 from glazychev-art/regtime
Browse files Browse the repository at this point in the history
Add registrationtime chain element
  • Loading branch information
denis-tingaikin authored Dec 1, 2021
2 parents e08105a + 2eb47cc commit 45b6b3c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/registry/chains/registryk8s/registry-k8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (
"github.com/networkservicemesh/sdk/pkg/registry/common/expire"
"github.com/networkservicemesh/sdk/pkg/registry/common/proxy"
"github.com/networkservicemesh/sdk/pkg/registry/common/serialize"
"github.com/networkservicemesh/sdk/pkg/registry/common/setregistrationtime"
"github.com/networkservicemesh/sdk/pkg/registry/core/chain"

"github.com/networkservicemesh/sdk-k8s/pkg/registry/etcd"
Expand All @@ -47,6 +48,7 @@ type Config struct {
func NewServer(config *Config, dialOptions ...grpc.DialOption) registryserver.Registry {
nseChain := chain.NewNetworkServiceEndpointRegistryServer(
serialize.NewNetworkServiceEndpointRegistryServer(),
setregistrationtime.NewNetworkServiceEndpointRegistryServer(),
expire.NewNetworkServiceEndpointRegistryServer(config.ChainCtx, config.ExpirePeriod),
etcd.NewNetworkServiceEndpointRegistryServer(config.ChainCtx, config.Namespace, config.ClientSet),
proxy.NewNetworkServiceEndpointRegistryServer(config.ProxyRegistryURL),
Expand Down

0 comments on commit 45b6b3c

Please sign in to comment.