Skip to content

Commit

Permalink
Merge pull request #80 from idanlevin/fix-klog-tmp-files
Browse files Browse the repository at this point in the history
initalize klog properly
  • Loading branch information
jacobstr authored Aug 6, 2020
2 parents 68d76c2 + 065bbdb commit 0a4fdc3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/draino/draino.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import (
"k8s.io/client-go/tools/cache"
"k8s.io/client-go/tools/leaderelection"
"k8s.io/client-go/tools/leaderelection/resourcelock"
"k8s.io/klog"

"github.com/planetlabs/draino/internal/kubernetes"
)
Expand Down Expand Up @@ -76,6 +77,9 @@ func main() {
)
kingpin.MustParse(app.Parse(os.Args[1:]))

// this is required to make all packages using klog write to stderr instead of tmp files
klog.InitFlags(nil)

var (
nodesCordoned = &view.View{
Name: "cordoned_nodes_total",
Expand Down

0 comments on commit 0a4fdc3

Please sign in to comment.