Fixes static check failures in test/e2e_node/*

This commit is contained in:
Nabarun Pal
2019-08-26 13:27:25 +05:30
parent b327a729c5
commit 83c443e728
10 changed files with 20 additions and 41 deletions

View File

@@ -18,7 +18,7 @@ package e2e_node
import (
"github.com/onsi/ginkgo"
"k8s.io/api/core/v1"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/uuid"
"k8s.io/kubernetes/pkg/kubelet"
@@ -158,6 +158,7 @@ var _ = framework.KubeDescribe("ContainerLogPath [NodeConformance]", func() {
// get podID from created Pod
createdLogPod, err := podClient.Get(logPodName, metav1.GetOptions{})
framework.ExpectNoError(err, "Failed to get pod: %s", logPodName)
podNs := createdLogPod.Namespace
podName := createdLogPod.Name
podID := string(createdLogPod.UID)