Update framework imports and its functions.

Signed-off-by: Cedric Hauber <hauber.c@gmail.com>
This commit is contained in:
Humble Chirammal
2020-01-16 14:56:51 +05:30
committed by mergify[bot]
parent 7c96c5c567
commit 2d0ed298e3
5 changed files with 31 additions and 6 deletions

View File

@ -20,8 +20,8 @@ import (
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
clientset "k8s.io/client-go/kubernetes"
"k8s.io/kubernetes/test/e2e/framework"
e2elog "k8s.io/kubernetes/test/e2e/framework/log"
frameworkPod "k8s.io/kubernetes/test/e2e/framework/pod"
)
func logsCSIPods(label string, c clientset.Interface) {
@ -44,7 +44,7 @@ func logsCSIPods(label string, c clientset.Interface) {
func kubectlLogPod(c clientset.Interface, pod *v1.Pod) {
container := pod.Spec.Containers
for i := range container {
logs, err := framework.GetPodLogs(c, pod.Namespace, pod.Name, container[i].Name)
logs, err := frameworkPod.GetPodLogs(c, pod.Namespace, pod.Name, container[i].Name)
if err != nil {
logs, err = getPreviousPodLogs(c, pod.Namespace, pod.Name, container[i].Name)
if err != nil {