11package compat_otp
22
3- import exutil "github.com/openshift/origin/test/extended/util"
4-
53import (
64 "bufio"
75 "context"
@@ -19,8 +17,22 @@ import (
1917 "time"
2018
2119 g "github.com/onsi/ginkgo/v2"
20+ . "github.com/onsi/gomega"
2221 o "github.com/onsi/gomega"
23-
22+ appsv1 "github.com/openshift/api/apps/v1"
23+ buildv1 "github.com/openshift/api/build/v1"
24+ configv1 "github.com/openshift/api/config/v1"
25+ imagev1 "github.com/openshift/api/image/v1"
26+ operatorv1 "github.com/openshift/api/operator/v1"
27+ appsv1clienttyped "github.com/openshift/client-go/apps/clientset/versioned/typed/apps/v1"
28+ buildv1clienttyped "github.com/openshift/client-go/build/clientset/versioned/typed/build/v1"
29+ imagev1typedclient "github.com/openshift/client-go/image/clientset/versioned/typed/image/v1"
30+ "github.com/openshift/library-go/pkg/apps/appsutil"
31+ "github.com/openshift/library-go/pkg/build/naming"
32+ "github.com/openshift/library-go/pkg/git"
33+ "github.com/openshift/library-go/pkg/image/imageutil"
34+ exutil "github.com/openshift/origin/test/extended/util"
35+ testdata "github.com/openshift/origin/test/extended/util/compat_otp/testdata"
2436 authorizationapi "k8s.io/api/authorization/v1"
2537 batchv1 "k8s.io/api/batch/v1"
2638 corev1 "k8s.io/api/core/v1"
@@ -47,22 +59,6 @@ import (
4759 e2eoutput "k8s.io/kubernetes/test/e2e/framework/pod/output"
4860 "k8s.io/kubernetes/test/e2e/framework/statefulset"
4961 "k8s.io/kubernetes/test/utils/image"
50-
51- appsv1 "github.com/openshift/api/apps/v1"
52- buildv1 "github.com/openshift/api/build/v1"
53- configv1 "github.com/openshift/api/config/v1"
54- imagev1 "github.com/openshift/api/image/v1"
55- operatorv1 "github.com/openshift/api/operator/v1"
56- appsv1clienttyped "github.com/openshift/client-go/apps/clientset/versioned/typed/apps/v1"
57- buildv1clienttyped "github.com/openshift/client-go/build/clientset/versioned/typed/build/v1"
58- imagev1typedclient "github.com/openshift/client-go/image/clientset/versioned/typed/image/v1"
59- "github.com/openshift/library-go/pkg/apps/appsutil"
60- "github.com/openshift/library-go/pkg/build/naming"
61- "github.com/openshift/library-go/pkg/git"
62- "github.com/openshift/library-go/pkg/image/imageutil"
63- testdata "github.com/openshift/origin/test/extended/util/compat_otp/testdata"
64-
65- . "github.com/onsi/gomega"
6662)
6763
6864func init () {
@@ -424,7 +420,7 @@ func DumpPodStates(oc *exutil.CLI) {
424420 e2e .Logf ("Error dumping pod states: %v" , err )
425421 return
426422 }
427- e2e .Logf (out )
423+ e2e .Logf ("%s" , out )
428424}
429425
430426// DumpPodStatesInNamespace dumps the state of all pods in the provided namespace.
@@ -435,7 +431,7 @@ func DumpPodStatesInNamespace(namespace string, oc *exutil.CLI) {
435431 e2e .Logf ("Error dumping pod states: %v" , err )
436432 return
437433 }
438- e2e .Logf (out )
434+ e2e .Logf ("%s" , out )
439435}
440436
441437// DumpPodLogsStartingWith will dump any pod starting with the name prefix provided
@@ -514,7 +510,7 @@ func DumpPodsCommand(c kubernetes.Interface, ns string, selector labels.Selector
514510 }
515511 for name , stdout := range values {
516512 stdout = strings .TrimSuffix (stdout , "\n " )
517- e2e .Logf (name + ": " + strings .Join (strings .Split (stdout , "\n " ), fmt .Sprintf ("\n %s: " , name )))
513+ e2e .Logf ("%s: %s" , name , strings .Join (strings .Split (stdout , "\n " ), fmt .Sprintf ("\n %s: " , name )))
518514 }
519515}
520516
@@ -526,7 +522,7 @@ func DumpConfigMapStates(oc *exutil.CLI) {
526522 e2e .Logf ("Error dumping configMap states: %v" , err )
527523 return
528524 }
529- e2e .Logf (out )
525+ e2e .Logf ("%s" , out )
530526}
531527
532528// GetMasterThreadDump will get a golang thread stack dump
0 commit comments