Merge pull request #8746 from justinsb/e2e_restartpolicy_never

e2e: Specify RestartPolicy=Never in empty_dir test
This commit is contained in:
Eric Tune 2015-06-01 13:47:31 -07:00
commit 5651bdb237
2 changed files with 3 additions and 1 deletions

View File

@ -95,6 +95,7 @@ func testPodWithVolume(path string, source *api.EmptyDirVolumeSource) *api.Pod {
}, },
}, },
}, },
RestartPolicy: api.RestartPolicyNever,
Volumes: []api.Volume{ Volumes: []api.Volume{
{ {
Name: volumeName, Name: volumeName,

View File

@ -135,7 +135,8 @@ func testPodWithHostVol(path string, source *api.HostPathVolumeSource) *api.Pod
}, },
}, },
}, },
Volumes: mount(source), RestartPolicy: api.RestartPolicyNever,
Volumes: mount(source),
}, },
} }
} }