@@ -377,8 +377,7 @@ var _ = framework.KubeDescribe("Variable Expansion", func() {
377
377
}
378
378
379
379
ginkgo .By ("creating the pod with failed condition" )
380
- var podClient * framework.PodClient
381
- podClient = f .PodClient ()
380
+ var podClient * framework.PodClient = f .PodClient ()
382
381
pod = podClient .Create (pod )
383
382
384
383
err := e2epod .WaitTimeoutForPodRunningInNamespace (f .ClientSet , pod .Name , pod .Namespace , framework .PodStartShortTimeout )
@@ -469,8 +468,7 @@ var _ = framework.KubeDescribe("Variable Expansion", func() {
469
468
}
470
469
471
470
ginkgo .By ("creating the pod" )
472
- var podClient * framework.PodClient
473
- podClient = f .PodClient ()
471
+ var podClient * framework.PodClient = f .PodClient ()
474
472
pod = podClient .Create (pod )
475
473
476
474
ginkgo .By ("waiting for pod running" )
@@ -607,8 +605,7 @@ var _ = framework.KubeDescribe("Variable Expansion", func() {
607
605
608
606
// Start pod
609
607
ginkgo .By (fmt .Sprintf ("Creating pod %s" , pod .Name ))
610
- var podClient * framework.PodClient
611
- podClient = f .PodClient ()
608
+ var podClient * framework.PodClient = f .PodClient ()
612
609
pod = podClient .Create (pod )
613
610
defer func () {
614
611
e2epod .DeletePodWithWait (f .ClientSet , pod )
@@ -640,9 +637,7 @@ var _ = framework.KubeDescribe("Variable Expansion", func() {
640
637
})
641
638
642
639
func testPodFailSubpath (f * framework.Framework , pod * v1.Pod ) {
643
-
644
- var podClient * framework.PodClient
645
- podClient = f .PodClient ()
640
+ var podClient * framework.PodClient = f .PodClient ()
646
641
pod = podClient .Create (pod )
647
642
648
643
defer func () {
0 commit comments