Skip to content

Commit 9b72814

Browse files
authored
Merge pull request #1420 from k8s-infra-cherrypick-robot/cherry-pick-1413-to-release-1.12
[release-1.12] Initialize flags prior to setting --logtostderr in test/k8s-integration/main.go
2 parents 2abfcd3 + 577dbef commit 9b72814

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)