Set user agent for e2e consistently

This commit is contained in:
Jordan Liggitt
2019-11-04 09:11:20 -05:00
parent 00deec8719
commit 300daa13a4
2 changed files with 16 additions and 13 deletions

View File

@@ -160,14 +160,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