Skip to content

Commit e3eb053

Browse files
authored
Merge pull request kubernetes#89568 from SataQiu/staging-e2e-framework-20200327
e2e/framework: remove direct import to pkg/kubelet/util/format
2 parents 0fa225f + b748c70 commit e3eb053

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

test/e2e/framework/pod/BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ go_library(
1313
visibility = ["//visibility:public"],
1414
deps = [
1515
"//pkg/kubelet/types:go_default_library",
16-
"//pkg/kubelet/util/format:go_default_library",
1716
"//staging/src/k8s.io/api/core/v1:go_default_library",
1817
"//staging/src/k8s.io/apimachinery/pkg/api/errors:go_default_library",
1918
"//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",

test/e2e/framework/pod/wait.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ import (
3434
"k8s.io/apimachinery/pkg/util/wait"
3535
clientset "k8s.io/client-go/kubernetes"
3636
"k8s.io/kubectl/pkg/util/podutils"
37-
"k8s.io/kubernetes/pkg/kubelet/util/format"
3837
e2elog "k8s.io/kubernetes/test/e2e/framework/log"
3938
testutils "k8s.io/kubernetes/test/utils"
4039
)
@@ -302,7 +301,7 @@ func WaitForMatchPodsCondition(c clientset.Interface, opts metav1.ListOptions, d
302301
return fmt.Errorf("Unexpected error: %v", err)
303302
}
304303
if !done {
305-
conditionNotMatch = append(conditionNotMatch, format.Pod(&pod))
304+
conditionNotMatch = append(conditionNotMatch, fmt.Sprintf("%s_%s(%s)", pod.Name, pod.Namespace, pod.UID))
306305
}
307306
}
308307
if len(conditionNotMatch) <= 0 {

0 commit comments

Comments
 (0)