Skip to content

Commit

Permalink
feat: update client-go to v0.26.0
Browse files Browse the repository at this point in the history
  • Loading branch information
huangjiao-heart committed Feb 27, 2023
1 parent 813dde1 commit bdc81ac
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 36 deletions.
28 changes: 1 addition & 27 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/openebs/lib-csi
module github.com/huangjiao-heart/lib-csi

go 1.14

Expand All @@ -15,29 +15,3 @@ require (
k8s.io/klog/v2 v2.80.1
k8s.io/utils v0.0.0-20221107191617-1a15be271d1d
)

//replace (
// k8s.io/api => k8s.io/api v0.26.0
// k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.26.0
// k8s.io/apimachinery => k8s.io/apimachinery v0.26.0
// k8s.io/apiserver => k8s.io/apiserver v0.26.0
// k8s.io/cli-runtime => k8s.io/cli-runtime v0.26.0
// k8s.io/cloud-provider => k8s.io/cloud-provider v0.26.0
// k8s.io/cluster-bootstrap => k8s.io/cluster-bootstrap v0.26.0
// k8s.io/code-generator => k8s.io/code-generator v0.26.0
// k8s.io/component-base => k8s.io/component-base v0.26.0
// k8s.io/cri-api => k8s.io/cri-api v0.26.0
// k8s.io/csi-translation-lib => k8s.io/csi-translation-lib v0.26.0
// k8s.io/kube-aggregator => k8s.io/kube-aggregator v0.26.0
// k8s.io/kube-controller-manager => k8s.io/kube-controller-manager v0.26.0
// k8s.io/kube-proxy => k8s.io/kube-proxy v0.26.0
// k8s.io/kube-scheduler => k8s.io/kube-scheduler v0.26.0
// k8s.io/kubectl => k8s.io/kubectl v0.26.0
// k8s.io/kubelet => k8s.io/kubelet v0.26.0
// k8s.io/legacy-cloud-providers => k8s.io/legacy-cloud-providers v0.26.0
// k8s.io/metrics => k8s.io/metrics v0.26.0
// k8s.io/node-api => k8s.io/node-api v0.26.0
// k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.26.0
// k8s.io/sample-cli-plugin => k8s.io/sample-cli-plugin v0.26.0
// k8s.io/sample-controller => k8s.io/sample-controller v0.26.0
//)
2 changes: 1 addition & 1 deletion pkg/btrfs/btrfs_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package btrfs
import (
"os/exec"

"github.com/openebs/lib-csi/pkg/common/errors"
"github.com/huangjiao-heart/lib-csi/pkg/common/errors"
"k8s.io/klog"
)

Expand Down
5 changes: 3 additions & 2 deletions pkg/client/k8s/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package k8s
import (
"strings"

"github.com/openebs/lib-csi/pkg/common/env"
"github.com/huangjiao-heart/lib-csi/pkg/common/env"
"github.com/pkg/errors"
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/clientcmd"
Expand Down Expand Up @@ -67,7 +67,8 @@ func (c *configFromREST) Get() (*rest.Config, error) {
// ConfigGetters holds a list of ConfigGetter instances
//
// NOTE:
// This is an implementation of ConfigGetter
//
// This is an implementation of ConfigGetter
type ConfigGetters []ConfigGetter

// Name returns the name of this config getter instance
Expand Down
2 changes: 1 addition & 1 deletion pkg/client/k8s/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"os"
"testing"

"github.com/openebs/lib-csi/pkg/common/env"
"github.com/huangjiao-heart/lib-csi/pkg/common/env"
)

// test if configFromENV implements ConfigGetter interface
Expand Down
2 changes: 1 addition & 1 deletion pkg/common/kubernetes/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"strings"
"sync"

env "github.com/openebs/lib-csi/pkg/common/env"
env "github.com/huangjiao-heart/lib-csi/pkg/common/env"
"github.com/pkg/errors"
"k8s.io/client-go/dynamic"
"k8s.io/client-go/kubernetes"
Expand Down
4 changes: 2 additions & 2 deletions pkg/device/iolimit/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ limitations under the License.
package iolimit

import (
"github.com/openebs/lib-csi/pkg/common/errors"
"github.com/openebs/lib-csi/pkg/common/helpers"
"github.com/huangjiao-heart/lib-csi/pkg/common/errors"
"github.com/huangjiao-heart/lib-csi/pkg/common/helpers"
"io/ioutil"
"strconv"
"strings"
Expand Down
2 changes: 1 addition & 1 deletion pkg/scheduler/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"sort"

"github.com/container-storage-interface/spec/lib/go/csi"
k8sapi "github.com/openebs/lib-csi/pkg/client/k8s"
k8sapi "github.com/huangjiao-heart/lib-csi/pkg/client/k8s"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/klog"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/xfs/xfs_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ limitations under the License.
package xfs

import (
"github.com/openebs/lib-csi/pkg/mount"
"github.com/huangjiao-heart/lib-csi/pkg/mount"
"os"
"os/exec"
"path/filepath"
Expand Down

0 comments on commit bdc81ac

Please sign in to comment.