File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -15,5 +15,6 @@ require (
15
15
k8s.io/api v0.0.0-20190620084959-7cf5895f2711
16
16
k8s.io/apimachinery v0.0.0-20190612205821-1799e75a0719
17
17
k8s.io/client-go v0.0.0-20190620085101-78d2af792bab
18
+ k8s.io/klog v0.3.1
18
19
k8s.io/utils v0.0.0-20190607212802-c55fbcfc754a // indirect
19
20
)
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package main
3
3
import (
4
4
"context"
5
5
"fmt"
6
+ "io/ioutil"
6
7
"math/rand"
7
8
"net/http"
8
9
_ "net/http/pprof"
@@ -22,6 +23,7 @@ import (
22
23
"k8s.io/client-go/kubernetes"
23
24
_ "k8s.io/client-go/plugin/pkg/client/auth"
24
25
"k8s.io/client-go/tools/clientcmd"
26
+ "k8s.io/klog"
25
27
26
28
"github.com/linki/chaoskube/chaoskube"
27
29
"github.com/linki/chaoskube/terminator"
57
59
58
60
func init () {
59
61
rand .Seed (time .Now ().UTC ().UnixNano ())
62
+ klog .SetOutput (ioutil .Discard )
60
63
61
64
kingpin .Flag ("labels" , "A set of labels to restrict the list of affected pods. Defaults to everything." ).StringVar (& labelString )
62
65
kingpin .Flag ("annotations" , "A set of annotations to restrict the list of affected pods. Defaults to everything." ).StringVar (& annString )
You can’t perform that action at this time.
0 commit comments