mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Surface error returned by LoadConfig
This commit is contained in:
parent
12f36302f9
commit
84b53966fd
@ -162,6 +162,7 @@ func (f *Framework) BeforeEach() {
|
|||||||
if f.ClientSet == nil {
|
if f.ClientSet == nil {
|
||||||
ginkgo.By("Creating a kubernetes client")
|
ginkgo.By("Creating a kubernetes client")
|
||||||
config, err := LoadConfig()
|
config, err := LoadConfig()
|
||||||
|
ExpectNoError(err)
|
||||||
testDesc := ginkgo.CurrentGinkgoTestDescription()
|
testDesc := ginkgo.CurrentGinkgoTestDescription()
|
||||||
if len(testDesc.ComponentTexts) > 0 {
|
if len(testDesc.ComponentTexts) > 0 {
|
||||||
componentTexts := strings.Join(testDesc.ComponentTexts, " ")
|
componentTexts := strings.Join(testDesc.ComponentTexts, " ")
|
||||||
@ -171,7 +172,6 @@ func (f *Framework) BeforeEach() {
|
|||||||
componentTexts)
|
componentTexts)
|
||||||
}
|
}
|
||||||
|
|
||||||
ExpectNoError(err)
|
|
||||||
config.QPS = f.Options.ClientQPS
|
config.QPS = f.Options.ClientQPS
|
||||||
config.Burst = f.Options.ClientBurst
|
config.Burst = f.Options.ClientBurst
|
||||||
if f.Options.GroupVersion != nil {
|
if f.Options.GroupVersion != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user