From 06f934ea1f1f31566672f3999dbec5c0685bdd0e Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Wed, 28 Oct 2020 10:37:27 +0100 Subject: [PATCH] pv controller test: enable klog output This makes it possible to run tests with -v=5 and thus actually get some output. --- pkg/controller/volume/persistentvolume/framework_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/controller/volume/persistentvolume/framework_test.go b/pkg/controller/volume/persistentvolume/framework_test.go index 4f6d556583f..f032a0278a8 100644 --- a/pkg/controller/volume/persistentvolume/framework_test.go +++ b/pkg/controller/volume/persistentvolume/framework_test.go @@ -47,6 +47,10 @@ import ( "k8s.io/kubernetes/pkg/volume/util/recyclerclient" ) +func init() { + klog.InitFlags(nil) +} + // This is a unit test framework for persistent volume controller. // It fills the controller with test claims/volumes and can simulate these // scenarios: