File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -149,19 +149,20 @@ func TestOADPE2E(t *testing.T) {
149
149
150
150
gomega .RegisterFailHandler (ginkgo .Fail )
151
151
152
+ kubernetesClientForSuiteRun , err = kubernetes .NewForConfig (kubeConfig )
153
+ gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
154
+
152
155
// Set up kubeConfigForHC if kubeconfig_hc flag is provided
153
156
if hcKubeconfig != "" {
154
157
kubeConfigForHC , err = clientcmd .BuildConfigFromFlags ("" , hcKubeconfig )
155
158
gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
159
+
156
160
kubeConfigForHC .QPS = kubeConfig .QPS
157
161
kubeConfigForHC .Burst = kubeConfig .Burst
158
- }
159
162
160
- kubernetesClientForSuiteRun , err = kubernetes .NewForConfig (kubeConfig )
161
- gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
162
-
163
- crClientForHC , err = client .New (kubeConfigForHC , client.Options {Scheme : lib .Scheme })
164
- gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
163
+ crClientForHC , err = client .New (kubeConfigForHC , client.Options {Scheme : lib .Scheme })
164
+ gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
165
+ }
165
166
166
167
runTimeClientForSuiteRun , err = client .New (kubeConfig , client.Options {Scheme : lib .Scheme })
167
168
gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
You can’t perform that action at this time.
0 commit comments