From 39dc761e3220037d932524c257b81ef99e7ac59a Mon Sep 17 00:00:00 2001 From: stefanprodan Date: Thu, 18 Apr 2019 19:56:48 +0300 Subject: [PATCH] Make codegen work with the klog shim --- Gopkg.lock | 8 ++++---- vendor/github.com/stefanprodan/klog/klog.go | 3 +++ vendor/k8s.io/klog/klog.go | 3 +++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Gopkg.lock b/Gopkg.lock index 87b4c2ab8..0c64f20e1 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -243,11 +243,11 @@ [[projects]] branch = "master" - digest = "1:2e6e20169542dbe9c8c177555b9dfec8ada0931cb6e136ffdcc4fe23dcae45de" + digest = "1:755d83f10748295646cf74cd19611ebffad37807e49632feb8e3f47d43210c3d" name = "github.com/stefanprodan/klog" packages = ["."] pruneopts = "NUT" - revision = "24e46756647dfe5806bc0cb0b67ca51e9883d247" + revision = "9cbb78b20423182f9e5b2a214dd255f5e117d2d1" [[projects]] digest = "1:22f696cee54865fb8e9ff91df7b633f6b8f22037a8015253c6b6a71ca82219c7" @@ -670,11 +670,11 @@ [[projects]] branch = "master" - digest = "1:2e6e20169542dbe9c8c177555b9dfec8ada0931cb6e136ffdcc4fe23dcae45de" + digest = "1:755d83f10748295646cf74cd19611ebffad37807e49632feb8e3f47d43210c3d" name = "k8s.io/klog" packages = ["."] pruneopts = "NUT" - revision = "24e46756647dfe5806bc0cb0b67ca51e9883d247" + revision = "9cbb78b20423182f9e5b2a214dd255f5e117d2d1" source = "github.com/stefanprodan/klog" [[projects]] diff --git a/vendor/github.com/stefanprodan/klog/klog.go b/vendor/github.com/stefanprodan/klog/klog.go index 6da9089b7..b36e9c630 100644 --- a/vendor/github.com/stefanprodan/klog/klog.go +++ b/vendor/github.com/stefanprodan/klog/klog.go @@ -21,6 +21,7 @@ package klog import ( + "flag" "fmt" "os" "strconv" @@ -277,3 +278,5 @@ func Exitf(format string, args ...interface{}) { skipLogger().Errorf(format, args...) os.Exit(1) } + +func InitFlags(flagset *flag.FlagSet) {} diff --git a/vendor/k8s.io/klog/klog.go b/vendor/k8s.io/klog/klog.go index 6da9089b7..b36e9c630 100644 --- a/vendor/k8s.io/klog/klog.go +++ b/vendor/k8s.io/klog/klog.go @@ -21,6 +21,7 @@ package klog import ( + "flag" "fmt" "os" "strconv" @@ -277,3 +278,5 @@ func Exitf(format string, args ...interface{}) { skipLogger().Errorf(format, args...) os.Exit(1) } + +func InitFlags(flagset *flag.FlagSet) {}