Skip to content

Commit bedcbb5

Browse files
authored
Upgrade upstream volume snapshots client module to v8 (#3200)
* Add the latest go module for upstream volume snapshots * Use only snapshots module v8 * Delete empty file
1 parent 0c11a7c commit bedcbb5

40 files changed

+2633
-289
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ require (
2323
github.com/hashicorp/go-plugin v1.6.0
2424
github.com/hashicorp/golang-lru/v2 v2.0.7
2525
github.com/invopop/jsonschema v0.12.0
26-
github.com/kubernetes-csi/external-snapshotter/client/v4 v4.2.0
26+
github.com/kubernetes-csi/external-snapshotter/client/v8 v8.2.0
2727
github.com/loft-sh/admin-apis v0.0.0-20250825172409-daa49fc5396e
2828
github.com/loft-sh/agentapi/v4 v4.4.0-alpha.29
2929
github.com/loft-sh/analytics-client v0.0.0-20240219162240-2f4c64b2494e

go.sum

Lines changed: 2 additions & 251 deletions
Large diffs are not rendered by default.

pkg/controllers/resources/volumesnapshotclasses/syncer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"k8s.io/apimachinery/pkg/types"
1414
utilerrors "k8s.io/apimachinery/pkg/util/errors"
1515

16-
volumesnapshotv1 "github.com/kubernetes-csi/external-snapshotter/client/v4/apis/volumesnapshot/v1"
16+
volumesnapshotv1 "github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1"
1717
ctrl "sigs.k8s.io/controller-runtime"
1818
"sigs.k8s.io/controller-runtime/pkg/client"
1919
)

pkg/controllers/resources/volumesnapshotclasses/syncer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/loft-sh/vcluster/pkg/util/translate"
1111
"gotest.tools/assert"
1212

13-
volumesnapshotv1 "github.com/kubernetes-csi/external-snapshotter/client/v4/apis/volumesnapshot/v1"
13+
volumesnapshotv1 "github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1"
1414
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1515
"k8s.io/apimachinery/pkg/runtime"
1616
"k8s.io/apimachinery/pkg/runtime/schema"

pkg/controllers/resources/volumesnapshotcontents/syncer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
syncertypes "github.com/loft-sh/vcluster/pkg/syncer/types"
1515
utilerrors "k8s.io/apimachinery/pkg/util/errors"
1616

17-
volumesnapshotv1 "github.com/kubernetes-csi/external-snapshotter/client/v4/apis/volumesnapshot/v1"
17+
volumesnapshotv1 "github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1"
1818
"github.com/loft-sh/vcluster/pkg/util/translate"
1919
"k8s.io/apimachinery/pkg/api/equality"
2020
kerrors "k8s.io/apimachinery/pkg/api/errors"

pkg/controllers/resources/volumesnapshotcontents/syncer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"k8s.io/apimachinery/pkg/types"
1414
"k8s.io/utils/ptr"
1515

16-
volumesnapshotv1 "github.com/kubernetes-csi/external-snapshotter/client/v4/apis/volumesnapshot/v1"
16+
volumesnapshotv1 "github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1"
1717
"github.com/loft-sh/vcluster/pkg/util/translate"
1818
corev1 "k8s.io/api/core/v1"
1919
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

pkg/controllers/resources/volumesnapshotcontents/translate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package volumesnapshotcontents
22

33
import (
4-
volumesnapshotv1 "github.com/kubernetes-csi/external-snapshotter/client/v4/apis/volumesnapshot/v1"
4+
volumesnapshotv1 "github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1"
55
"github.com/loft-sh/vcluster/pkg/constants"
66
"github.com/loft-sh/vcluster/pkg/mappings"
77
"github.com/loft-sh/vcluster/pkg/syncer/synccontext"

pkg/controllers/resources/volumesnapshots/syncer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"github.com/loft-sh/vcluster/pkg/util/translate"
1414
utilerrors "k8s.io/apimachinery/pkg/util/errors"
1515

16-
volumesnapshotv1 "github.com/kubernetes-csi/external-snapshotter/client/v4/apis/volumesnapshot/v1"
16+
volumesnapshotv1 "github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1"
1717
"k8s.io/apimachinery/pkg/api/equality"
1818
kerrors "k8s.io/apimachinery/pkg/api/errors"
1919
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

pkg/controllers/resources/volumesnapshots/syncer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"gotest.tools/assert"
1212
"k8s.io/utils/ptr"
1313

14-
volumesnapshotv1 "github.com/kubernetes-csi/external-snapshotter/client/v4/apis/volumesnapshot/v1"
14+
volumesnapshotv1 "github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1"
1515
"github.com/loft-sh/vcluster/pkg/util/translate"
1616
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1717
"k8s.io/apimachinery/pkg/runtime"

pkg/controllers/resources/volumesnapshots/translate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package volumesnapshots
33
import (
44
"fmt"
55

6-
volumesnapshotv1 "github.com/kubernetes-csi/external-snapshotter/client/v4/apis/volumesnapshot/v1"
6+
volumesnapshotv1 "github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1"
77
"github.com/loft-sh/vcluster/pkg/constants"
88
"github.com/loft-sh/vcluster/pkg/mappings"
99
"github.com/loft-sh/vcluster/pkg/syncer/synccontext"

0 commit comments

Comments
 (0)