mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 13:45:06 +00:00
Revert "Mount r/w GCE PD disks with -o discard"
This commit is contained in:
@@ -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()}
|
||||
|
Reference in New Issue
Block a user