mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Merge pull request #8746 from justinsb/e2e_restartpolicy_never
e2e: Specify RestartPolicy=Never in empty_dir test
This commit is contained in:
commit
5651bdb237
@ -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,6 +135,7 @@ func testPodWithHostVol(path string, source *api.HostPathVolumeSource) *api.Pod
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
RestartPolicy: api.RestartPolicyNever,
|
||||||
Volumes: mount(source),
|
Volumes: mount(source),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user