Skip to content

Commit

Permalink
consume device plugin server from sdk-k8s
Browse files Browse the repository at this point in the history
Signed-off-by: Periyasamy Palanisamy <[email protected]>
  • Loading branch information
pperiyasamy committed Jul 27, 2021
1 parent 86a1909 commit e81818d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 313 deletions.
306 changes: 0 additions & 306 deletions internal/deviceplugin/server.go

This file was deleted.

4 changes: 0 additions & 4 deletions internal/imports/imports_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import (
_ "github.com/networkservicemesh/sdk-sriov/pkg/sriov/pci"
_ "github.com/networkservicemesh/sdk-sriov/pkg/sriov/resource"
_ "github.com/networkservicemesh/sdk-sriov/pkg/sriov/token"
_ "github.com/networkservicemesh/sdk-sriov/pkg/tools/tokens"
_ "github.com/networkservicemesh/sdk/pkg/networkservice/common/authorize"
_ "github.com/networkservicemesh/sdk/pkg/registry/chains/client"
_ "github.com/networkservicemesh/sdk/pkg/registry/common/expire"
Expand Down Expand Up @@ -47,14 +46,11 @@ import (
_ "google.golang.org/grpc/credentials"
_ "google.golang.org/grpc/health/grpc_health_v1"
_ "io/ioutil"
_ "k8s.io/kubelet/pkg/apis/deviceplugin/v1beta1"
_ "k8s.io/kubelet/pkg/apis/podresources/v1alpha1"
_ "net/url"
_ "os"
_ "os/signal"
_ "path"
_ "path/filepath"
_ "sync"
_ "syscall"
_ "testing"
_ "time"
Expand Down
4 changes: 1 addition & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ import (
"github.com/networkservicemesh/sdk/pkg/tools/opentracing"
"github.com/networkservicemesh/sdk/pkg/tools/spiffejwt"
"github.com/networkservicemesh/sdk/pkg/tools/token"

"github.com/networkservicemesh/cmd-forwarder-sriov/internal/deviceplugin"
)

// Config - configuration for cmd-forwarder-sriov
Expand Down Expand Up @@ -168,7 +166,7 @@ func main() {
// ********************************************************************************

// Start device plugin server
if err = deviceplugin.StartServers(
if err = k8sdeviceplugin.StartServers(
ctx,
tokenPool,
config.ResourcePollTimeout,
Expand Down

0 comments on commit e81818d

Please sign in to comment.