Skip to content

Commit 577dbef

Browse files
pwschuurmank8s-infra-cherrypick-robot
authored and
k8s-infra-cherrypick-robot
committed
Initialized flags prior to setting --logtostderr in k8s-integration-test
1 parent 2abfcd3 commit 577dbef

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/k8s-integration/main.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,11 @@ type testParameters struct {
112112
}
113113

114114
func init() {
115+
klog.InitFlags(nil)
115116
flag.Set("logtostderr", "true")
116117
}
117118

118119
func main() {
119-
klog.InitFlags(nil)
120-
flag.Set("logtostderr", "true")
121120
flag.Parse()
122121

123122
if *useGKEManagedDriver {

0 commit comments

Comments
 (0)