diff --git a/cmd/csi-resizer/main.go b/cmd/csi-resizer/main.go index fad34c5f2..ee30ba2c1 100644 --- a/cmd/csi-resizer/main.go +++ b/cmd/csi-resizer/main.go @@ -36,7 +36,7 @@ import ( "k8s.io/apimachinery/pkg/util/wait" "k8s.io/client-go/informers" - "k8s.io/klog" + "k8s.io/klog/v2" ) var ( diff --git a/go.mod b/go.mod index 0648c4f0f..183c3db4b 100644 --- a/go.mod +++ b/go.mod @@ -11,7 +11,7 @@ require ( k8s.io/apimachinery v0.19.0 k8s.io/client-go v0.19.0 k8s.io/csi-translation-lib v0.19.0 - k8s.io/klog v1.0.0 + k8s.io/klog/v2 v2.2.0 ) replace k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.19.0 diff --git a/pkg/controller/controller.go b/pkg/controller/controller.go index ee78973b2..5d7225be2 100644 --- a/pkg/controller/controller.go +++ b/pkg/controller/controller.go @@ -39,7 +39,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" ) // ResizeController watches PVCs and checks if they are requesting an resizing operation. diff --git a/pkg/resizer/csi_resizer.go b/pkg/resizer/csi_resizer.go index 2c3ddc46f..629fc3b64 100644 --- a/pkg/resizer/csi_resizer.go +++ b/pkg/resizer/csi_resizer.go @@ -32,7 +32,7 @@ import ( "k8s.io/client-go/informers" "k8s.io/client-go/kubernetes" csitrans "k8s.io/csi-translation-lib" - "k8s.io/klog" + "k8s.io/klog/v2" ) var ( diff --git a/pkg/resizer/trivial_resizer.go b/pkg/resizer/trivial_resizer.go index 60738963d..42a22c036 100644 --- a/pkg/resizer/trivial_resizer.go +++ b/pkg/resizer/trivial_resizer.go @@ -21,7 +21,7 @@ import ( "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/resource" csitrans "k8s.io/csi-translation-lib" - "k8s.io/klog" + "k8s.io/klog/v2" ) // newTrivialResizer returns a trivial resizer which will mark all pvs' resize process as finished. diff --git a/vendor/modules.txt b/vendor/modules.txt index dea223087..eb3c40e52 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -501,9 +501,9 @@ k8s.io/component-base/version k8s.io/csi-translation-lib k8s.io/csi-translation-lib/plugins # k8s.io/klog v1.0.0 -## explicit k8s.io/klog # k8s.io/klog/v2 v2.2.0 +## explicit k8s.io/klog/v2 # k8s.io/kube-openapi v0.0.0-20200805222855-6aeccd4b50c6 k8s.io/kube-openapi/pkg/util/proto