diff --git a/cmd/draino/draino.go b/cmd/draino/draino.go index ba40bcc7..57658b3d 100644 --- a/cmd/draino/draino.go +++ b/cmd/draino/draino.go @@ -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" ) @@ -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",