Migrate to klog v2

This commit is contained in:
Manuel Alejandro de Brito Fontes 2020-08-08 19:31:02 -04:00
parent c500bd4b3f
commit cb86c5698c
38 changed files with 47 additions and 43 deletions

View file

@ -28,7 +28,7 @@ import (
"time"
ps "github.com/mitchellh/go-ps"
"k8s.io/klog"
"k8s.io/klog/v2"
)
// TODO: Check https://github.com/kubernetes/kubernetes/blob/master/pkg/master/ports/ports.go for ports already being used
@ -144,7 +144,7 @@ func readFileToString(path string) (string, error) {
func Version() string {
flag := "-v"
if klog.V(2) {
if klog.V(2).Enabled() {
flag = "-V"
}