Skip to content

Commit a0a893d

Browse files
authored
Merge pull request #1250 from lilic/fix-klog
Bump klog to v2 and client-go to 1.19
2 parents 59701e6 + cb2c2a2 commit a0a893d

403 files changed

Lines changed: 38598 additions & 17687 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/cli-arguments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ spec:
2525
```txt
2626
$ kube-state-metrics -h
2727
Usage of ./kube-state-metrics:
28-
--add_dir_header If true, adds the file directory to the header
28+
--add_dir_header If true, adds the file directory to the header of the log messages
2929
--alsologtostderr log to standard error as well as files
3030
--apiserver string The URL of the apiserver to use as a master
3131
--enable-gzip-encoding Gzip responses when requested by clients via 'Accept-Encoding: gzip' header.

go.mod

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,8 @@ require (
77
github.com/campoy/embedmd v1.0.0
88
github.com/dgryski/go-jump v0.0.0-20170409065014-e1f439676b57
99
github.com/fatih/color v1.9.0 // indirect
10-
github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6 // indirect
1110
github.com/google/go-jsonnet v0.14.0
12-
github.com/gophercloud/gophercloud v0.8.0 // indirect
1311
github.com/jsonnet-bundler/jsonnet-bundler v0.4.1-0.20200708074244-ada055a225fa
14-
github.com/kr/pretty v0.2.0 // indirect
1512
github.com/mattn/go-colorable v0.1.7 // indirect
1613
github.com/oklog/run v1.1.0
1714
github.com/pkg/errors v0.9.1
@@ -21,15 +18,14 @@ require (
2118
github.com/prometheus/prometheus v2.5.0+incompatible
2219
github.com/robfig/cron/v3 v3.0.0
2320
github.com/spf13/pflag v1.0.5
24-
golang.org/x/net v0.0.0-20200301022130-244492dfa37a // indirect
2521
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d // indirect
2622
golang.org/x/sys v0.0.0-20200915084602-288bc346aa39 // indirect
2723
golang.org/x/tools v0.0.0-20200305205014-bc073721adb6
28-
k8s.io/api v0.18.6
29-
k8s.io/apimachinery v0.18.6
24+
k8s.io/api v0.19.2
25+
k8s.io/apimachinery v0.19.2
3026
k8s.io/autoscaler/vertical-pod-autoscaler v0.0.0-20200727194258-b7922d74509c
31-
k8s.io/client-go v0.18.6
32-
k8s.io/klog v1.0.0
27+
k8s.io/client-go v0.19.2
28+
k8s.io/klog/v2 v2.2.0
3329
)
3430

3531
go 1.14

go.sum

Lines changed: 138 additions & 15 deletions
Large diffs are not rendered by default.

internal/store/builder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ import (
4040
vpaclientset "k8s.io/autoscaler/vertical-pod-autoscaler/pkg/client/clientset/versioned"
4141
clientset "k8s.io/client-go/kubernetes"
4242
"k8s.io/client-go/tools/cache"
43-
"k8s.io/klog"
43+
"k8s.io/klog/v2"
4444

4545
ksmtypes "k8s.io/kube-state-metrics/v2/pkg/builder/types"
4646
"k8s.io/kube-state-metrics/v2/pkg/listwatch"

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import (
3535
clientset "k8s.io/client-go/kubernetes"
3636
_ "k8s.io/client-go/plugin/pkg/client/auth"
3737
"k8s.io/client-go/tools/clientcmd"
38-
"k8s.io/klog"
38+
"k8s.io/klog/v2"
3939

4040
"k8s.io/kube-state-metrics/v2/internal/store"
4141
"k8s.io/kube-state-metrics/v2/pkg/allowdenylist"

pkg/listwatch/namespace_denylist.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
"k8s.io/apimachinery/pkg/runtime"
2626
"k8s.io/apimachinery/pkg/watch"
2727
"k8s.io/client-go/tools/cache"
28-
"k8s.io/klog"
28+
"k8s.io/klog/v2"
2929
)
3030

3131
// denylistListerWatcher implements cache.ListerWatcher

pkg/metricshandler/metrics_handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131
"k8s.io/apimachinery/pkg/fields"
3232
"k8s.io/client-go/kubernetes"
3333
"k8s.io/client-go/tools/cache"
34-
"k8s.io/klog"
34+
"k8s.io/klog/v2"
3535

3636
"k8s.io/kube-state-metrics/v2/internal/store"
3737
metricsstore "k8s.io/kube-state-metrics/v2/pkg/metrics_store"

pkg/options/options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"fmt"
2222
"os"
2323

24-
"k8s.io/klog"
24+
"k8s.io/klog/v2"
2525

2626
"github.com/spf13/pflag"
2727
)

pkg/util/proc/reaper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"os/signal"
2424
"syscall"
2525

26-
"k8s.io/klog"
26+
"k8s.io/klog/v2"
2727
)
2828

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

vendor/cloud.google.com/go/compute/metadata/.repo-metadata.json

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)