Skip to content

Commit

Permalink
Merge pull request #275 from alexander-ding/enh/migrate-v2
Browse files Browse the repository at this point in the history
Bump version to v2
  • Loading branch information
k8s-ci-robot authored Oct 25, 2022
2 parents 4c73b12 + 7f83b4f commit 312980b
Show file tree
Hide file tree
Showing 24 changed files with 41 additions and 41 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/kubernetes-csi/csi-proxy
module github.com/kubernetes-csi/csi-proxy/v2

go 1.16

Expand Down
4 changes: 2 additions & 2 deletions integrationtests/disk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"testing"
"time"

"github.com/kubernetes-csi/csi-proxy/pkg/disk"
diskapi "github.com/kubernetes-csi/csi-proxy/pkg/disk/hostapi"
"github.com/kubernetes-csi/csi-proxy/v2/pkg/disk"
diskapi "github.com/kubernetes-csi/csi-proxy/v2/pkg/disk/hostapi"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
4 changes: 2 additions & 2 deletions integrationtests/filesystem_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/kubernetes-csi/csi-proxy/pkg/filesystem"
filesystemapi "github.com/kubernetes-csi/csi-proxy/pkg/filesystem/hostapi"
"github.com/kubernetes-csi/csi-proxy/v2/pkg/filesystem"
filesystemapi "github.com/kubernetes-csi/csi-proxy/v2/pkg/filesystem/hostapi"
)

func TestFilesystem(t *testing.T) {
Expand Down
12 changes: 6 additions & 6 deletions integrationtests/iscsi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import (
"strconv"
"testing"

disk "github.com/kubernetes-csi/csi-proxy/pkg/disk"
diskapi "github.com/kubernetes-csi/csi-proxy/pkg/disk/hostapi"
iscsi "github.com/kubernetes-csi/csi-proxy/pkg/iscsi"
iscsiapi "github.com/kubernetes-csi/csi-proxy/pkg/iscsi/hostapi"
system "github.com/kubernetes-csi/csi-proxy/pkg/system"
systemapi "github.com/kubernetes-csi/csi-proxy/pkg/system/hostapi"
disk "github.com/kubernetes-csi/csi-proxy/v2/pkg/disk"
diskapi "github.com/kubernetes-csi/csi-proxy/v2/pkg/disk/hostapi"
iscsi "github.com/kubernetes-csi/csi-proxy/v2/pkg/iscsi"
iscsiapi "github.com/kubernetes-csi/csi-proxy/v2/pkg/iscsi/hostapi"
system "github.com/kubernetes-csi/csi-proxy/v2/pkg/system"
systemapi "github.com/kubernetes-csi/csi-proxy/v2/pkg/system/hostapi"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down
8 changes: 4 additions & 4 deletions integrationtests/smb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

fs "github.com/kubernetes-csi/csi-proxy/pkg/filesystem"
fsapi "github.com/kubernetes-csi/csi-proxy/pkg/filesystem/hostapi"
"github.com/kubernetes-csi/csi-proxy/pkg/smb"
smbapi "github.com/kubernetes-csi/csi-proxy/pkg/smb/hostapi"
fs "github.com/kubernetes-csi/csi-proxy/v2/pkg/filesystem"
fsapi "github.com/kubernetes-csi/csi-proxy/v2/pkg/filesystem/hostapi"
"github.com/kubernetes-csi/csi-proxy/v2/pkg/smb"
smbapi "github.com/kubernetes-csi/csi-proxy/v2/pkg/smb/hostapi"
)

func TestSMB(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions integrationtests/system_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"strings"
"testing"

system "github.com/kubernetes-csi/csi-proxy/pkg/system"
systemapi "github.com/kubernetes-csi/csi-proxy/pkg/system/hostapi"
system "github.com/kubernetes-csi/csi-proxy/v2/pkg/system"
systemapi "github.com/kubernetes-csi/csi-proxy/v2/pkg/system/hostapi"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down
2 changes: 1 addition & 1 deletion integrationtests/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"testing"
"time"

"github.com/kubernetes-csi/csi-proxy/pkg/volume"
"github.com/kubernetes-csi/csi-proxy/v2/pkg/volume"
)

// getKubeletPathForTest returns the path to the current working directory
Expand Down
8 changes: 4 additions & 4 deletions integrationtests/volume_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"strings"
"testing"

disk "github.com/kubernetes-csi/csi-proxy/pkg/disk"
diskapi "github.com/kubernetes-csi/csi-proxy/pkg/disk/hostapi"
volume "github.com/kubernetes-csi/csi-proxy/pkg/volume"
volumeapi "github.com/kubernetes-csi/csi-proxy/pkg/volume/hostapi"
disk "github.com/kubernetes-csi/csi-proxy/v2/pkg/disk"
diskapi "github.com/kubernetes-csi/csi-proxy/v2/pkg/disk/hostapi"
volume "github.com/kubernetes-csi/csi-proxy/v2/pkg/volume"
volumeapi "github.com/kubernetes-csi/csi-proxy/v2/pkg/volume/hostapi"

"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/disk/disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package disk
import (
"context"

diskapi "github.com/kubernetes-csi/csi-proxy/pkg/disk/hostapi"
diskapi "github.com/kubernetes-csi/csi-proxy/v2/pkg/disk/hostapi"
"k8s.io/klog/v2"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/disk/hostapi/hostapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"syscall"
"unsafe"

"github.com/kubernetes-csi/csi-proxy/pkg/utils"
"github.com/kubernetes-csi/csi-proxy/v2/pkg/utils"
"k8s.io/klog/v2"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/filesystem/filesystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package filesystem
import (
"context"

filesystemapi "github.com/kubernetes-csi/csi-proxy/pkg/filesystem/hostapi"
filesystemapi "github.com/kubernetes-csi/csi-proxy/v2/pkg/filesystem/hostapi"
"k8s.io/klog/v2"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/filesystem/filesystem_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

fsapi "github.com/kubernetes-csi/csi-proxy/pkg/filesystem/hostapi"
fsapi "github.com/kubernetes-csi/csi-proxy/v2/pkg/filesystem/hostapi"
)

type fakeFileSystemAPI struct{}
Expand Down
2 changes: 1 addition & 1 deletion pkg/filesystem/hostapi/hostapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"path/filepath"
"strings"

"github.com/kubernetes-csi/csi-proxy/pkg/utils"
"github.com/kubernetes-csi/csi-proxy/v2/pkg/utils"
)

// Implements the Filesystem OS API calls. All code here should be very simple
Expand Down
2 changes: 1 addition & 1 deletion pkg/filesystem/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"regexp"
"strings"

"github.com/kubernetes-csi/csi-proxy/pkg/utils"
"github.com/kubernetes-csi/csi-proxy/v2/pkg/utils"
)

var invalidPathCharsRegexWindows = regexp.MustCompile(`["/\:\?\*|]`)
Expand Down
2 changes: 1 addition & 1 deletion pkg/iscsi/hostapi/hostapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"fmt"

"github.com/kubernetes-csi/csi-proxy/pkg/utils"
"github.com/kubernetes-csi/csi-proxy/v2/pkg/utils"
)

// Implements the iSCSI OS API calls. All code here should be very simple
Expand Down
2 changes: 1 addition & 1 deletion pkg/iscsi/iscsi.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

iscsiapi "github.com/kubernetes-csi/csi-proxy/pkg/iscsi/hostapi"
iscsiapi "github.com/kubernetes-csi/csi-proxy/v2/pkg/iscsi/hostapi"
"k8s.io/klog/v2"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/smb/hostapi/hostapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strings"

"github.com/kubernetes-csi/csi-proxy/pkg/utils"
"github.com/kubernetes-csi/csi-proxy/v2/pkg/utils"
)

type HostAPI interface {
Expand Down
4 changes: 2 additions & 2 deletions pkg/smb/smb.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"
"strings"

fs "github.com/kubernetes-csi/csi-proxy/pkg/filesystem"
smbapi "github.com/kubernetes-csi/csi-proxy/pkg/smb/hostapi"
fs "github.com/kubernetes-csi/csi-proxy/v2/pkg/filesystem"
smbapi "github.com/kubernetes-csi/csi-proxy/v2/pkg/smb/hostapi"
"k8s.io/klog/v2"
)

Expand Down
6 changes: 3 additions & 3 deletions pkg/smb/smb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"testing"

fs "github.com/kubernetes-csi/csi-proxy/pkg/filesystem"
fsapi "github.com/kubernetes-csi/csi-proxy/pkg/filesystem/hostapi"
smbapi "github.com/kubernetes-csi/csi-proxy/pkg/smb/hostapi"
fs "github.com/kubernetes-csi/csi-proxy/v2/pkg/filesystem"
fsapi "github.com/kubernetes-csi/csi-proxy/v2/pkg/filesystem/hostapi"
smbapi "github.com/kubernetes-csi/csi-proxy/v2/pkg/smb/hostapi"
)

type fakeSMBAPI struct{}
Expand Down
2 changes: 1 addition & 1 deletion pkg/system/hostapi/hostapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os/exec"
"strings"

"github.com/kubernetes-csi/csi-proxy/pkg/utils"
"github.com/kubernetes-csi/csi-proxy/v2/pkg/utils"
)

// Implements the System OS API calls. All code here should be very simple
Expand Down
2 changes: 1 addition & 1 deletion pkg/system/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package system
import (
"context"

systemapi "github.com/kubernetes-csi/csi-proxy/pkg/system/hostapi"
systemapi "github.com/kubernetes-csi/csi-proxy/v2/pkg/system/hostapi"
"k8s.io/klog/v2"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/volume/hostapi/hostapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strconv"
"strings"

"github.com/kubernetes-csi/csi-proxy/pkg/utils"
"github.com/kubernetes-csi/csi-proxy/v2/pkg/utils"
"k8s.io/klog/v2"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/volume/volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

volumeapi "github.com/kubernetes-csi/csi-proxy/pkg/volume/hostapi"
volumeapi "github.com/kubernetes-csi/csi-proxy/v2/pkg/volume/hostapi"
"k8s.io/klog/v2"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/volume/volume_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"testing"

volumeapi "github.com/kubernetes-csi/csi-proxy/pkg/volume/hostapi"
volumeapi "github.com/kubernetes-csi/csi-proxy/v2/pkg/volume/hostapi"
)

type fakeVolumeAPI struct {
Expand Down

0 comments on commit 312980b

Please sign in to comment.