mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 00:07:50 +00:00
Fix nits in node e2e log path
This commit is contained in:
parent
545f749a0d
commit
3002f5719d
@ -20,13 +20,19 @@ import (
|
|||||||
"k8s.io/kubernetes/pkg/api/v1"
|
"k8s.io/kubernetes/pkg/api/v1"
|
||||||
"k8s.io/kubernetes/pkg/kubelet"
|
"k8s.io/kubernetes/pkg/kubelet"
|
||||||
kubecontainer "k8s.io/kubernetes/pkg/kubelet/container"
|
kubecontainer "k8s.io/kubernetes/pkg/kubelet/container"
|
||||||
"k8s.io/kubernetes/pkg/util/uuid"
|
|
||||||
"k8s.io/kubernetes/test/e2e/framework"
|
"k8s.io/kubernetes/test/e2e/framework"
|
||||||
|
|
||||||
. "github.com/onsi/ginkgo"
|
. "github.com/onsi/ginkgo"
|
||||||
)
|
)
|
||||||
|
|
||||||
const logString = "This is the expected log content of this node e2e test"
|
const (
|
||||||
|
logString = "This is the expected log content of this node e2e test"
|
||||||
|
|
||||||
|
logPodName = "logger-pod"
|
||||||
|
logContName = "logger-container"
|
||||||
|
checkPodName = "checker-pod"
|
||||||
|
checkContName = "checker-container"
|
||||||
|
)
|
||||||
|
|
||||||
var _ = framework.KubeDescribe("ContainerLogPath", func() {
|
var _ = framework.KubeDescribe("ContainerLogPath", func() {
|
||||||
f := framework.NewDefaultFramework("kubelet-container-log-path")
|
f := framework.NewDefaultFramework("kubelet-container-log-path")
|
||||||
@ -39,11 +45,6 @@ var _ = framework.KubeDescribe("ContainerLogPath", func() {
|
|||||||
logDirVolumeName := "log-dir-vol"
|
logDirVolumeName := "log-dir-vol"
|
||||||
logDir := kubelet.ContainerLogsDir
|
logDir := kubelet.ContainerLogsDir
|
||||||
|
|
||||||
logPodName := "logger-" + string(uuid.NewUUID())
|
|
||||||
logContName := "logger-c-" + string(uuid.NewUUID())
|
|
||||||
checkPodName := "checker" + string(uuid.NewUUID())
|
|
||||||
checkContName := "checker-c-" + string(uuid.NewUUID())
|
|
||||||
|
|
||||||
logPod := &v1.Pod{
|
logPod := &v1.Pod{
|
||||||
ObjectMeta: v1.ObjectMeta{
|
ObjectMeta: v1.ObjectMeta{
|
||||||
Name: logPodName,
|
Name: logPodName,
|
||||||
|
Loading…
Reference in New Issue
Block a user