Skip to content

Commit

Permalink
Use interpose registry client
Browse files Browse the repository at this point in the history
Signed-off-by: Vladimir Popov <vladimir.popov@xored.com>
  • Loading branch information
Vladimir Popov committed Dec 29, 2020
1 parent eef9974 commit bfc5f0e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import (
"github.com/networkservicemesh/sdk-sriov/pkg/sriov/resource"
"github.com/networkservicemesh/sdk-sriov/pkg/sriov/token"
"github.com/networkservicemesh/sdk/pkg/networkservice/common/authorize"
"github.com/networkservicemesh/sdk/pkg/registry/common/interpose"
"github.com/networkservicemesh/sdk/pkg/registry/common/refresh"
registrysendfd "github.com/networkservicemesh/sdk/pkg/registry/common/sendfd"
registrychain "github.com/networkservicemesh/sdk/pkg/registry/core/chain"
Expand All @@ -60,7 +61,7 @@ import (

// Config - configuration for cmd-forwarder-sriov
type Config struct {
Name string `default:"interpose-nse#sriov-forwarder" desc:"Name of Endpoint"`
Name string `default:"sriov-forwarder" desc:"Name of Endpoint"`
NSName string `default:"sriovns" desc:"Name of Network Service to Register with Registry"`
ConnectTo url.URL `default:"unix:///connect.to.socket" desc:"url to connect to" split_words:"true"`
MaxTokenLifetime time.Duration `default:"24h" desc:"maximum lifetime of tokens" split_words:"true"`
Expand Down Expand Up @@ -249,6 +250,7 @@ func main() {

registryClient := registrychain.NewNetworkServiceEndpointRegistryClient(
refresh.NewNetworkServiceEndpointRegistryClient(),
interpose.NewNetworkServiceEndpointRegistryClient(),
registrysendfd.NewNetworkServiceEndpointRegistryClient(),
registryapi.NewNetworkServiceEndpointRegistryClient(registryCC),
)
Expand Down

0 comments on commit bfc5f0e

Please sign in to comment.