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 <periyasamy.palanisamy@est.tech>
  • Loading branch information
pperiyasamy committed Jul 27, 2021
1 parent 86a1909 commit 4834d56
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 314 deletions.
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@ require (
github.com/spiffe/go-spiffe/v2 v2.0.0-alpha.4.0.20200528145730-dc11d0c74e85
github.com/stretchr/testify v1.7.0
google.golang.org/grpc v1.35.0
k8s.io/kubelet v0.20.1
)
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 4834d56

Please sign in to comment.