refact(csi): use common lib-csi imports (#263)

Signed-off-by: shubham <shubham.bajpai@mayadata.io>
This commit is contained in:
Shubham Bajpai 2020-12-18 21:12:52 +05:30 committed by GitHub
parent 48e6a19d7c
commit 2906d39d94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
55 changed files with 271 additions and 611 deletions

View file

@ -17,7 +17,7 @@ limitations under the License.
package container
import (
"github.com/openebs/zfs-localpv/pkg/common/errors"
"github.com/openebs/lib-csi/pkg/common/errors"
corev1 "k8s.io/api/core/v1"
)

View file

@ -14,7 +14,7 @@ limitations under the License.
package deploy
import (
"github.com/openebs/zfs-localpv/pkg/common/errors"
"github.com/openebs/lib-csi/pkg/common/errors"
templatespec "github.com/openebs/zfs-localpv/tests/pts"
"github.com/openebs/zfs-localpv/tests/stringer"
appsv1 "k8s.io/api/apps/v1"

View file

@ -20,7 +20,7 @@ import (
"encoding/json"
"strings"
client "github.com/openebs/zfs-localpv/pkg/common/kubernetes/client"
client "github.com/openebs/lib-csi/pkg/common/kubernetes/client"
"github.com/pkg/errors"
appsv1 "k8s.io/api/apps/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

View file

@ -17,7 +17,7 @@ limitations under the License.
package k8svolume
import (
"github.com/openebs/zfs-localpv/pkg/common/errors"
"github.com/openebs/lib-csi/pkg/common/errors"
corev1 "k8s.io/api/core/v1"
)

View file

@ -17,7 +17,7 @@ limitations under the License.
package pod
import (
"github.com/openebs/zfs-localpv/pkg/common/errors"
"github.com/openebs/lib-csi/pkg/common/errors"
"github.com/openebs/zfs-localpv/tests/container"
volume "github.com/openebs/zfs-localpv/tests/k8svolume"
corev1 "k8s.io/api/core/v1"

View file

@ -18,8 +18,8 @@ import (
"bytes"
"encoding/json"
"github.com/openebs/zfs-localpv/pkg/common/errors"
client "github.com/openebs/zfs-localpv/pkg/common/kubernetes/client"
"github.com/openebs/lib-csi/pkg/common/errors"
client "github.com/openebs/lib-csi/pkg/common/kubernetes/client"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
clientset "k8s.io/client-go/kubernetes"

View file

@ -15,7 +15,7 @@
package pts
import (
"github.com/openebs/zfs-localpv/pkg/common/errors"
"github.com/openebs/lib-csi/pkg/common/errors"
"github.com/openebs/zfs-localpv/tests/container"
volume "github.com/openebs/zfs-localpv/tests/k8svolume"
corev1 "k8s.io/api/core/v1"

View file

@ -17,7 +17,7 @@ limitations under the License.
package pvc
import (
"github.com/openebs/zfs-localpv/pkg/common/errors"
"github.com/openebs/lib-csi/pkg/common/errors"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/resource"
)

View file

@ -17,7 +17,7 @@ limitations under the License.
package pvc
import (
"github.com/openebs/zfs-localpv/pkg/common/errors"
"github.com/openebs/lib-csi/pkg/common/errors"
corev1 "k8s.io/api/core/v1"
)

View file

@ -17,11 +17,11 @@ package pvc
import (
"strings"
"github.com/openebs/zfs-localpv/pkg/common/errors"
"github.com/openebs/lib-csi/pkg/common/errors"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
client "github.com/openebs/zfs-localpv/pkg/common/kubernetes/client"
client "github.com/openebs/lib-csi/pkg/common/kubernetes/client"
"k8s.io/client-go/kubernetes"
)

View file

@ -17,7 +17,7 @@ limitations under the License.
package sc
import (
"github.com/openebs/zfs-localpv/pkg/common/errors"
"github.com/openebs/lib-csi/pkg/common/errors"
storagev1 "k8s.io/api/storage/v1"
)

View file

@ -17,7 +17,7 @@ limitations under the License.
package sc
import (
"github.com/openebs/zfs-localpv/pkg/common/errors"
"github.com/openebs/lib-csi/pkg/common/errors"
storagev1 "k8s.io/api/storage/v1"
)

View file

@ -17,8 +17,8 @@ limitations under the License.
package sc
import (
"github.com/openebs/zfs-localpv/pkg/common/errors"
client "github.com/openebs/zfs-localpv/pkg/common/kubernetes/client"
"github.com/openebs/lib-csi/pkg/common/errors"
client "github.com/openebs/lib-csi/pkg/common/kubernetes/client"
storagev1 "k8s.io/api/storage/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"