From 2c8f8e68236bda772d74f6ba0cb5e99e0a734b8b Mon Sep 17 00:00:00 2001 From: Peter Schuurman Date: Fri, 13 Oct 2023 17:14:04 -0700 Subject: [PATCH] Initialized flags prior to setting --logtostderr in k8s-integration-test --- test/k8s-integration/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/k8s-integration/main.go b/test/k8s-integration/main.go index f1663a9de..1c66bc249 100644 --- a/test/k8s-integration/main.go +++ b/test/k8s-integration/main.go @@ -107,12 +107,11 @@ type testParameters struct { } func init() { + klog.InitFlags(nil) flag.Set("logtostderr", "true") } func main() { - klog.InitFlags(nil) - flag.Set("logtostderr", "true") flag.Parse() if *useGKEManagedDriver {