Commit 5651bdb2 authored by Eric Tune's avatar Eric Tune

Merge pull request #8746 from justinsb/e2e_restartpolicy_never

e2e: Specify RestartPolicy=Never in empty_dir test
parents 8195f13b 784c4aef
...@@ -95,6 +95,7 @@ func testPodWithVolume(path string, source *api.EmptyDirVolumeSource) *api.Pod { ...@@ -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,
......
...@@ -135,7 +135,8 @@ func testPodWithHostVol(path string, source *api.HostPathVolumeSource) *api.Pod ...@@ -135,7 +135,8 @@ func testPodWithHostVol(path string, source *api.HostPathVolumeSource) *api.Pod
}, },
}, },
}, },
Volumes: mount(source), RestartPolicy: api.RestartPolicyNever,
Volumes: mount(source),
}, },
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment