Skip to content

Commit f0cf113

Browse files
authored
Merge pull request #1421 from k8s-infra-cherrypick-robot/cherry-pick-1413-to-release-1.11
[release-1.11] Initialize flags prior to setting --logtostderr in test/k8s-integration/main.go
2 parents 4104121 + 171376c commit f0cf113

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
@@ -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)