Fixes following node e2e test:

[k8s.io] Kubelet metrics api when querying /stats/summary [It] it should report resource usage through the stats api

And the logs show following error:
Jun 21 15:57:13 localhost journal: tee: /test-empty-dir-mnt: Is a directory
This commit is contained in:
Avesh Agarwal 2016-06-21 15:55:49 -04:00
parent ee87a39f04
commit 63d979af9c

View File

@ -176,7 +176,7 @@ func createSummaryTestPods(f *framework.Framework, podNamePrefix string, count i
createPod(f, podName, []api.Container{ createPod(f, podName, []api.Container{
{ {
Image: ImageRegistry[busyBoxImage], Image: ImageRegistry[busyBoxImage],
Command: []string{"sh", "-c", "while true; do echo 'hello world' | tee ~/file | tee /test-empty-dir-mnt ; sleep 1; done"}, Command: []string{"sh", "-c", "while true; do echo 'hello world' | tee /test-empty-dir-mnt/file ; sleep 1; done"},
Name: podName + containerSuffix, Name: podName + containerSuffix,
VolumeMounts: []api.VolumeMount{ VolumeMounts: []api.VolumeMount{
{MountPath: "/test-empty-dir-mnt", Name: volumeNamePrefix}, {MountPath: "/test-empty-dir-mnt", Name: volumeNamePrefix},