Skip to content

Commit 773700e

Browse files
authored
Merge pull request #1445 from k8s-infra-cherrypick-robot/cherry-pick-1413-to-release-1.7
[release-1.7] Initialize flags prior to setting --logtostderr in test/k8s-integration/main.go
2 parents 2ce0a0f + 09b1c81 commit 773700e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/k8s-integration/main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,11 @@ type testParameters struct {
107107
}
108108

109109
func init() {
110+
klog.InitFlags(nil)
110111
flag.Set("logtostderr", "true")
111112
}
112113

113114
func main() {
114-
klog.InitFlags(nil)
115-
flag.Set("logtostderr", "true")
116115
flag.Parse()
117116

118117
if *useGKEManagedDriver {

0 commit comments

Comments
 (0)