mirror of
https://github.com/kastenhq/kubestr.git
synced 2024-12-14 11:57:56 +00:00
Update kanister dependency (#76)
* Update kanister dependency * Update go.sum * go mod tidy
This commit is contained in:
parent
8a1b8b23bb
commit
798242c5bd
4 changed files with 511 additions and 406 deletions
30
go.mod
30
go.mod
|
@ -5,41 +5,17 @@ go 1.14
|
|||
replace github.com/graymeta/stow => github.com/kastenhq/stow v0.1.2-kasten
|
||||
|
||||
require (
|
||||
github.com/Azure/azure-amqp-common-go/v2 v2.1.0 // indirect
|
||||
github.com/Masterminds/semver v1.5.0 // indirect
|
||||
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6 // indirect
|
||||
github.com/briandowns/spinner v1.12.0
|
||||
github.com/coreos/bbolt v1.3.3 // indirect
|
||||
github.com/eapache/go-resiliency v1.2.0 // indirect
|
||||
github.com/go-openapi/validate v0.19.5 // indirect
|
||||
github.com/golang/mock v1.4.4
|
||||
github.com/gopherjs/gopherjs v0.0.0-20190328170749-bb2674552d8f // indirect
|
||||
github.com/hashicorp/go-hclog v0.9.2 // indirect
|
||||
github.com/inconshreveable/go-update v0.0.0-20160112193335-8152e7eb6ccf // indirect
|
||||
github.com/golang/mock v1.6.0
|
||||
github.com/jarcoal/httpmock v1.0.5 // indirect
|
||||
github.com/kanisterio/kanister v0.0.0-20210223000054-31e45569f543
|
||||
github.com/kr/text v0.2.0 // indirect
|
||||
github.com/kanisterio/kanister v0.0.0-20210805190523-86f566052e0e
|
||||
github.com/kubernetes-csi/external-snapshotter/client/v4 v4.0.0
|
||||
github.com/minio/hdfs/v3 v3.0.1 // indirect
|
||||
github.com/minio/lsync v1.0.1 // indirect
|
||||
github.com/minio/minio-go/v6 v6.0.55 // indirect
|
||||
github.com/minio/parquet-go v0.0.0-20200414234858-838cfa8aae61 // indirect
|
||||
github.com/nats-io/gnatsd v1.4.1 // indirect
|
||||
github.com/nats-io/go-nats v1.7.2 // indirect
|
||||
github.com/nats-io/go-nats-streaming v0.4.4 // indirect
|
||||
github.com/nats-io/nats-server v1.4.1 // indirect
|
||||
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
|
||||
github.com/onsi/ginkgo v1.12.0 // indirect
|
||||
github.com/onsi/gomega v1.9.0 // indirect
|
||||
github.com/pkg/errors v0.9.1
|
||||
github.com/rcrowley/go-metrics v0.0.0-20190704165056-9c2d0518ed81 // indirect
|
||||
github.com/sirupsen/logrus v1.7.0 // indirect
|
||||
github.com/spf13/cobra v1.1.1
|
||||
github.com/ugorji/go v1.1.5-pre // indirect
|
||||
github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77 // indirect
|
||||
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f
|
||||
gopkg.in/cheggaaa/pb.v1 v1.0.28 // indirect
|
||||
honnef.co/go/tools v0.0.1-2020.1.5 // indirect
|
||||
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c
|
||||
k8s.io/api v0.20.1
|
||||
k8s.io/apimachinery v0.20.1
|
||||
k8s.io/client-go v0.20.1
|
||||
|
|
|
@ -509,7 +509,7 @@ func (c *snapshotCreate) CreateFromSourceCheck(ctx context.Context, snapshotter
|
|||
return err
|
||||
}
|
||||
targetSnapClassName := clonePrefix + args.VolumeSnapshotClass
|
||||
err := snapshotter.CloneVolumeSnapshotClass(args.VolumeSnapshotClass, targetSnapClassName, kansnapshot.DeletionPolicyRetain, nil)
|
||||
err := snapshotter.CloneVolumeSnapshotClass(ctx, args.VolumeSnapshotClass, targetSnapClassName, kansnapshot.DeletionPolicyRetain, nil)
|
||||
if err != nil {
|
||||
return errors.Wrapf(err, "Failed to create a VolumeSnapshotClass to use to restore the snapshot")
|
||||
}
|
||||
|
|
|
@ -870,10 +870,10 @@ type fakeSnapshotter struct {
|
|||
cfsErr error
|
||||
}
|
||||
|
||||
func (f *fakeSnapshotter) GetVolumeSnapshotClass(annotationKey, annotationValue, storageClassName string) (string, error) {
|
||||
func (f *fakeSnapshotter) GetVolumeSnapshotClass(ctx context.Context, annotationKey, annotationValue, storageClassName string) (string, error) {
|
||||
return "", nil
|
||||
}
|
||||
func (f *fakeSnapshotter) CloneVolumeSnapshotClass(sourceClassName, targetClassName, newDeletionPolicy string, excludeAnnotations []string) error {
|
||||
func (f *fakeSnapshotter) CloneVolumeSnapshotClass(ctx context.Context, sourceClassName, targetClassName, newDeletionPolicy string, excludeAnnotations []string) error {
|
||||
return f.cvsErr
|
||||
}
|
||||
func (f *fakeSnapshotter) Create(ctx context.Context, name, namespace, pvcName string, snapshotClass *string, waitForReady bool, labels map[string]string) error {
|
||||
|
|
Loading…
Reference in a new issue