feat(deps): Bump golang, k8s and lib-csi versions (#444)

- go: 1.19.9
- k8s: v1.27.2
- klog: v2
- lib-csi: v0.7.0

Signed-off-by: shubham <shubham14bajpai@gmail.com>
This commit is contained in:
Shubham Bajpai 2023-05-28 22:35:03 +05:30 committed by GitHub
parent ef61a5114c
commit c0343d0480
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3102 changed files with 798 additions and 1149218 deletions

View file

@ -26,7 +26,8 @@ import (
// to register custom resources
//
// NOTE:
// This variable name should not be changed
//
// This variable name should not be changed
var SchemeGroupVersion = schema.GroupVersion{
Group: "zfs.openebs.io",
Version: "v1",

View file

@ -1,3 +1,4 @@
//go:build !ignore_autogenerated
// +build !ignore_autogenerated
/*

View file

@ -26,7 +26,8 @@ import (
// to register custom resources
//
// NOTE:
// This variable name should not be changed
//
// This variable name should not be changed
var SchemeGroupVersion = schema.GroupVersion{
Group: "zfs.openebs.io",
Version: "v1alpha1",

View file

@ -37,7 +37,7 @@ import (
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/klog"
"k8s.io/klog/v2"
"sigs.k8s.io/controller-runtime/pkg/runtime/signals"
)
@ -328,7 +328,7 @@ func (ns *node) NodeUnstageVolume(
// TODO
// Verify if this needs to be implemented
//
// NodeExpandVolume resizes the filesystem if required
// # NodeExpandVolume resizes the filesystem if required
//
// If ControllerExpandVolumeResponse returns true in
// node_expansion_required then FileSystemResizePending

View file

@ -38,7 +38,7 @@ import (
apimeta "k8s.io/apimachinery/pkg/api/meta"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/tools/cache"
"k8s.io/klog"
"k8s.io/klog/v2"
errors "github.com/openebs/lib-csi/pkg/common/errors"
"github.com/openebs/lib-csi/pkg/common/helpers"

View file

@ -19,7 +19,7 @@ package driver
import (
"github.com/container-storage-interface/spec/lib/go/csi"
config "github.com/openebs/zfs-localpv/pkg/config"
"k8s.io/klog"
"k8s.io/klog/v2"
)
// CSIDriver defines a common data structure

View file

@ -28,7 +28,7 @@ import (
"google.golang.org/grpc"
"github.com/kubernetes-csi/csi-lib-utils/protosanitizer"
"k8s.io/klog"
"k8s.io/klog/v2"
"github.com/container-storage-interface/spec/lib/go/csi"
)
@ -44,7 +44,7 @@ func parseEndpoint(ep string) (string, string, error) {
return "", "", fmt.Errorf("invalid endpoint: %v", ep)
}
//filters if the logd are informative or pollutant
// filters if the logd are informative or pollutant
func isInfotrmativeLog(info string) bool {
// add the messages that pollute logs to the array

View file

@ -67,7 +67,7 @@ func (id *identity) GetPluginInfo(
// TODO
// Need to implement this
//
// Probe checks if the plugin is running or not
// # Probe checks if the plugin is running or not
//
// This implements csi.IdentityServer
func (id *identity) Probe(

View file

@ -18,7 +18,7 @@ package backup
import (
"fmt"
"k8s.io/klog"
"k8s.io/klog/v2"
"time"
apis "github.com/openebs/zfs-localpv/pkg/apis/openebs.io/zfs/v1"

View file

@ -17,7 +17,7 @@ limitations under the License.
package backup
import (
"k8s.io/klog"
"k8s.io/klog/v2"
clientset "github.com/openebs/zfs-localpv/pkg/generated/clientset/internalclientset"
openebsScheme "github.com/openebs/zfs-localpv/pkg/generated/clientset/internalclientset/scheme"

View file

@ -20,7 +20,7 @@ import (
"sync"
"github.com/pkg/errors"
"k8s.io/klog"
"k8s.io/klog/v2"
"time"

View file

@ -17,7 +17,7 @@ limitations under the License.
package restore
import (
"k8s.io/klog"
"k8s.io/klog/v2"
clientset "github.com/openebs/zfs-localpv/pkg/generated/clientset/internalclientset"
openebsScheme "github.com/openebs/zfs-localpv/pkg/generated/clientset/internalclientset/scheme"

View file

@ -20,7 +20,7 @@ import (
"fmt"
"time"
"k8s.io/klog"
"k8s.io/klog/v2"
apis "github.com/openebs/zfs-localpv/pkg/apis/openebs.io/zfs/v1"
zfs "github.com/openebs/zfs-localpv/pkg/zfs"

View file

@ -20,7 +20,7 @@ import (
"sync"
"github.com/pkg/errors"
"k8s.io/klog"
"k8s.io/klog/v2"
"time"

View file

@ -28,7 +28,7 @@ import (
"k8s.io/client-go/tools/cache"
"k8s.io/client-go/tools/record"
"k8s.io/client-go/util/workqueue"
"k8s.io/klog"
"k8s.io/klog/v2"
)
const controllerAgentName = "zfssnap-controller"

View file

@ -26,7 +26,7 @@ import (
"k8s.io/apimachinery/pkg/util/runtime"
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/client-go/tools/cache"
"k8s.io/klog"
"k8s.io/klog/v2"
)
// isDeletionCandidate checks if a zfs snapshot is a deletion candidate.

View file

@ -29,7 +29,7 @@ import (
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/clientcmd"
"k8s.io/klog"
"k8s.io/klog/v2"
)
var (

View file

@ -28,7 +28,7 @@ import (
"k8s.io/client-go/tools/cache"
"k8s.io/client-go/tools/record"
"k8s.io/client-go/util/workqueue"
"k8s.io/klog"
"k8s.io/klog/v2"
)
const controllerAgentName = "zfsvolume-controller"

View file

@ -29,7 +29,7 @@ import (
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/clientcmd"
"k8s.io/klog"
"k8s.io/klog/v2"
)
var (

View file

@ -26,7 +26,7 @@ import (
"k8s.io/apimachinery/pkg/util/runtime"
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/client-go/tools/cache"
"k8s.io/klog"
"k8s.io/klog/v2"
)
// isDeletionCandidate checks if a zfs volume is a deletion candidate.

View file

@ -31,7 +31,7 @@ import (
"k8s.io/client-go/tools/cache"
"k8s.io/client-go/tools/record"
"k8s.io/client-go/util/workqueue"
"k8s.io/klog"
"k8s.io/klog/v2"
)
const controllerAgentName = "zfsnode-controller"

View file

@ -30,7 +30,7 @@ import (
"k8s.io/apimachinery/pkg/util/runtime"
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/client-go/tools/cache"
"k8s.io/klog"
"k8s.io/klog/v2"
)
func (c *NodeController) listZFSPool() ([]apis.Pool, error) {

View file

@ -18,7 +18,7 @@ package usage
import (
analytics "github.com/jpillora/go-ogle-analytics"
"k8s.io/klog"
"k8s.io/klog/v2"
)
// Send sends a single usage metric to Google Analytics with some

View file

@ -21,7 +21,7 @@ import (
env "github.com/openebs/lib-csi/pkg/common/env"
openebsversion "github.com/openebs/zfs-localpv/pkg/version"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/klog"
"k8s.io/klog/v2"
)
var (

View file

@ -23,7 +23,7 @@ import (
"path/filepath"
"strings"
"k8s.io/klog"
"k8s.io/klog/v2"
)
var (

View file

@ -25,7 +25,7 @@ import (
apis "github.com/openebs/zfs-localpv/pkg/apis/openebs.io/zfs/v1"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"k8s.io/klog"
"k8s.io/klog/v2"
utilexec "k8s.io/utils/exec"
"k8s.io/utils/mount"
)

View file

@ -20,7 +20,7 @@ import (
"os/exec"
apis "github.com/openebs/zfs-localpv/pkg/apis/openebs.io/zfs/v1"
"k8s.io/klog"
"k8s.io/klog/v2"
"k8s.io/utils/mount"
)

View file

@ -28,7 +28,7 @@ import (
"github.com/openebs/zfs-localpv/pkg/builder/snapbuilder"
"github.com/openebs/zfs-localpv/pkg/builder/volbuilder"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/klog"
"k8s.io/klog/v2"
)
const (

View file

@ -33,7 +33,7 @@ import (
apis "github.com/openebs/zfs-localpv/pkg/apis/openebs.io/zfs/v1"
k8serrors "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/api/resource"
"k8s.io/klog"
"k8s.io/klog/v2"
)
// zfs related constants