Skip to content

Commit

Permalink
Adjust klog to klog/v2
Browse files Browse the repository at this point in the history
  • Loading branch information
lilic committed Oct 5, 2020
1 parent 2fdef21 commit 4093cb3
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion internal/store/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import (
vpaclientset "k8s.io/autoscaler/vertical-pod-autoscaler/pkg/client/clientset/versioned"
clientset "k8s.io/client-go/kubernetes"
"k8s.io/client-go/tools/cache"
"k8s.io/klog"
"k8s.io/klog/v2"

ksmtypes "k8s.io/kube-state-metrics/v2/pkg/builder/types"
"k8s.io/kube-state-metrics/v2/pkg/listwatch"
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import (
clientset "k8s.io/client-go/kubernetes"
_ "k8s.io/client-go/plugin/pkg/client/auth"
"k8s.io/client-go/tools/clientcmd"
"k8s.io/klog"
"k8s.io/klog/v2"

"k8s.io/kube-state-metrics/v2/internal/store"
"k8s.io/kube-state-metrics/v2/pkg/allowdenylist"
Expand Down
2 changes: 1 addition & 1 deletion pkg/listwatch/namespace_denylist.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/watch"
"k8s.io/client-go/tools/cache"
"k8s.io/klog"
"k8s.io/klog/v2"
)

// denylistListerWatcher implements cache.ListerWatcher
Expand Down
2 changes: 1 addition & 1 deletion pkg/metricshandler/metrics_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
"k8s.io/apimachinery/pkg/fields"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/tools/cache"
"k8s.io/klog"
"k8s.io/klog/v2"

"k8s.io/kube-state-metrics/v2/internal/store"
metricsstore "k8s.io/kube-state-metrics/v2/pkg/metrics_store"
Expand Down
2 changes: 1 addition & 1 deletion pkg/options/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"fmt"
"os"

"k8s.io/klog"
"k8s.io/klog/v2"

"github.com/spf13/pflag"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/proc/reaper.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"os/signal"
"syscall"

"k8s.io/klog"
"k8s.io/klog/v2"
)

// StartReaper starts a goroutine to reap processes if called from a process
Expand Down

0 comments on commit 4093cb3

Please sign in to comment.