Merge pull request #80331 from wongma7/framework-panic

Surface error returned by LoadConfig
This commit is contained in:
Kubernetes Prow Robot 2019-07-19 21:24:54 -07:00 committed by GitHub
commit febc95282a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -162,6 +162,7 @@ func (f *Framework) BeforeEach() {
if f.ClientSet == nil {
ginkgo.By("Creating a kubernetes client")
config, err := LoadConfig()
ExpectNoError(err)
testDesc := ginkgo.CurrentGinkgoTestDescription()
if len(testDesc.ComponentTexts) > 0 {
componentTexts := strings.Join(testDesc.ComponentTexts, " ")
@ -171,7 +172,6 @@ func (f *Framework) BeforeEach() {
componentTexts)
}
ExpectNoError(err)
config.QPS = f.Options.ClientQPS
config.Burst = f.Options.ClientBurst
if f.Options.GroupVersion != nil {