mirror of https://github.com/k3s-io/k3s
Revert "Mount r/w GCE PD disks with -o discard"
parent
3494f8e2f9
commit
8028e953b6
|
@ -165,9 +165,6 @@ func (attacher *gcePersistentDiskAttacher) MountDevice(spec *volume.Spec, device
|
|||
options := []string{}
|
||||
if readOnly {
|
||||
options = append(options, "ro")
|
||||
} else {
|
||||
// as per https://cloud.google.com/compute/docs/disks/add-persistent-disk#formatting
|
||||
options = append(options, "discard")
|
||||
}
|
||||
if notMnt {
|
||||
diskMounter := &mount.SafeFormatAndMount{Interface: mounter, Runner: exec.New()}
|
||||
|
|
Loading…
Reference in New Issue