mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-02-21 22:34:29 +00:00
csi-kata-directvolume: Remove usage of golang.org/x/net/context
This packages is deprecated, so use the standard library context package instead Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
committed by
Fabiano Fidêncio
parent
f2fae93785
commit
06246ea18b
@@ -8,13 +8,13 @@
|
||||
package directvolume
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
"github.com/golang/protobuf/ptypes/wrappers"
|
||||
"github.com/pborman/uuid"
|
||||
"golang.org/x/net/context"
|
||||
"google.golang.org/grpc/codes"
|
||||
"google.golang.org/grpc/status"
|
||||
|
||||
|
||||
@@ -6,13 +6,13 @@
|
||||
package directvolume
|
||||
|
||||
import (
|
||||
"context"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
csi "github.com/container-storage-interface/spec/lib/go/csi"
|
||||
"github.com/stretchr/testify/require"
|
||||
"golang.org/x/net/context"
|
||||
|
||||
"kata-containers/csi-kata-directvolume/pkg/spdkrpc"
|
||||
"kata-containers/csi-kata-directvolume/pkg/utils"
|
||||
|
||||
@@ -8,8 +8,9 @@
|
||||
package directvolume
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/container-storage-interface/spec/lib/go/csi"
|
||||
"golang.org/x/net/context"
|
||||
"google.golang.org/grpc/codes"
|
||||
"google.golang.org/grpc/status"
|
||||
"k8s.io/klog/v2"
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
package directvolume
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
@@ -17,7 +18,6 @@ import (
|
||||
"kata-containers/csi-kata-directvolume/pkg/utils"
|
||||
|
||||
"github.com/container-storage-interface/spec/lib/go/csi"
|
||||
"golang.org/x/net/context"
|
||||
"google.golang.org/grpc/codes"
|
||||
"google.golang.org/grpc/status"
|
||||
"k8s.io/klog/v2"
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
package directvolume
|
||||
|
||||
import (
|
||||
"context"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
@@ -13,7 +14,6 @@ import (
|
||||
|
||||
csi "github.com/container-storage-interface/spec/lib/go/csi"
|
||||
"github.com/stretchr/testify/require"
|
||||
"golang.org/x/net/context"
|
||||
|
||||
"kata-containers/csi-kata-directvolume/pkg/spdkrpc"
|
||||
"kata-containers/csi-kata-directvolume/pkg/utils"
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
package directvolume
|
||||
|
||||
import (
|
||||
"context"
|
||||
"sync"
|
||||
|
||||
"golang.org/x/net/context"
|
||||
"google.golang.org/grpc"
|
||||
"k8s.io/klog/v2"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user