volume binder: enable klog flags in test

When debugging the test runs it is useful to increase the log level:

go test -v ./pkg/controller/volume/scheduling -args -v 5
This commit is contained in:
Patrick Ohly 2020-01-22 20:12:59 +01:00
parent 5c8929d95e
commit a3c434510d

View File

@ -113,6 +113,10 @@ var (
zone1Labels = map[string]string{v1.LabelZoneFailureDomain: "us-east-1", v1.LabelZoneRegion: "us-east-1a"}
)
func init() {
klog.InitFlags(nil)
}
type testEnv struct {
client clientset.Interface
reactor *pvtesting.VolumeReactor