mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-11 21:12:07 +00:00
Change default volume source to regular emptydir for e2e volume servers
This commit is contained in:
parent
ff626a35fe
commit
87af8e085d
@ -244,7 +244,7 @@ func StartVolumeServer(client clientset.Interface, config VolumeTestConfig) *v1.
|
|||||||
mountName := fmt.Sprintf("path%d", i)
|
mountName := fmt.Sprintf("path%d", i)
|
||||||
volumes[i].Name = mountName
|
volumes[i].Name = mountName
|
||||||
if src == "" {
|
if src == "" {
|
||||||
volumes[i].VolumeSource.EmptyDir = &v1.EmptyDirVolumeSource{Medium: v1.StorageMediumMemory}
|
volumes[i].VolumeSource.EmptyDir = &v1.EmptyDirVolumeSource{}
|
||||||
} else {
|
} else {
|
||||||
volumes[i].VolumeSource.HostPath = &v1.HostPathVolumeSource{
|
volumes[i].VolumeSource.HostPath = &v1.HostPathVolumeSource{
|
||||||
Path: src,
|
Path: src,
|
||||||
|
Loading…
Reference in New Issue
Block a user