Skip to content

Commit 1633b76

Browse files
authored
Merge pull request #60 from cloudnativelabs/fix-glog-goflag
Apply glog/goflag noisy log workaround
2 parents dca10e9 + 78a0aeb commit 1633b76

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

kube-router.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import (
44
"fmt"
55
"os"
66

7+
"flag"
8+
79
"github.com/cloudnativelabs/kube-router/app"
810
"github.com/cloudnativelabs/kube-router/app/options"
911
"github.com/spf13/pflag"
@@ -15,6 +17,10 @@ func main() {
1517
config.AddFlags(pflag.CommandLine)
1618
pflag.Parse()
1719

20+
// Workaround for this issue:
21+
// https://github.com/kubernetes/kubernetes/issues/17162
22+
flag.CommandLine.Parse([]string{})
23+
1824
pflag.Set("logtostderr", "true")
1925

2026
if config.HelpRequested {

0 commit comments

Comments
 (0)