Surface error returned by LoadConfig

This commit is contained in:
Matthew Wong 2019-07-18 16:54:28 -07:00
parent 12f36302f9
commit 84b53966fd

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 {