mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
Update framework imports and its functions.
Signed-off-by: Cedric Hauber <hauber.c@gmail.com>
This commit is contained in:
committed by
mergify[bot]
parent
7c96c5c567
commit
2d0ed298e3
@ -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 {
|
||||
|
Reference in New Issue
Block a user