Merge pull request #84725 from liggitt/e2e-useragent

Set user agent for e2e consistently
This commit is contained in:
Kubernetes Prow Robot
2019-11-05 11:44:40 -08:00
committed by GitHub
2 changed files with 16 additions and 13 deletions

View File

@@ -159,14 +159,6 @@ func (f *Framework) BeforeEach() {
ginkgo.By("Creating a kubernetes client")
config, err := LoadConfig()
ExpectNoError(err)
testDesc := ginkgo.CurrentGinkgoTestDescription()
if len(testDesc.ComponentTexts) > 0 {
componentTexts := strings.Join(testDesc.ComponentTexts, " ")
config.UserAgent = fmt.Sprintf(
"%v -- %v",
rest.DefaultKubernetesUserAgent(),
componentTexts)
}
config.QPS = f.Options.ClientQPS
config.Burst = f.Options.ClientBurst