@@ -53,7 +53,6 @@ import (
53
53
utilfeature "k8s.io/apiserver/pkg/util/feature"
54
54
"k8s.io/client-go/dynamic"
55
55
clientset "k8s.io/client-go/kubernetes"
56
- "k8s.io/client-go/rest"
57
56
restclient "k8s.io/client-go/rest"
58
57
"k8s.io/client-go/tools/cache"
59
58
"k8s.io/client-go/tools/clientcmd"
@@ -492,7 +491,7 @@ func LoadConfig() (config *restclient.Config, err error) {
492
491
testDesc := ginkgo .CurrentGinkgoTestDescription ()
493
492
if len (testDesc .ComponentTexts ) > 0 {
494
493
componentTexts := strings .Join (testDesc .ComponentTexts , " " )
495
- config .UserAgent = fmt .Sprintf ("%s -- %s" , rest .DefaultKubernetesUserAgent (), componentTexts )
494
+ config .UserAgent = fmt .Sprintf ("%s -- %s" , restclient .DefaultKubernetesUserAgent (), componentTexts )
496
495
}
497
496
}
498
497
}()
@@ -1357,7 +1356,7 @@ func PrettyPrintJSON(metrics interface{}) string {
1357
1356
Logf ("Error indenting: %v" , err )
1358
1357
return ""
1359
1358
}
1360
- return string ( formatted .Bytes () )
1359
+ return formatted .String ( )
1361
1360
}
1362
1361
1363
1362
// taintExists checks if the given taint exists in list of taints. Returns true if exists false otherwise.
@@ -1422,7 +1421,7 @@ retriesLoop:
1422
1421
break actualWatchEventsLoop
1423
1422
}
1424
1423
}
1425
- if foundExpectedWatchEvent == false {
1424
+ if ! foundExpectedWatchEvent {
1426
1425
errs .Insert (fmt .Sprintf ("Watch event %v not found" , expectedWatchEvent .Type ))
1427
1426
}
1428
1427
totalValidWatchEvents ++
0 commit comments