k3s/pkg/volume/gce_pd
Sami Wagiaalla ab0258f259 Support formatting and mounting GCE PD without 'safe_format_and_mount'
The GCE PD plugin uses safe_format_and_mount found on standard GCE images:

https://github.com/GoogleCloudPlatform/compute-image-packages/blob/master/google-startup-scripts/usr/share/google/safe_format_and_mount

On custom images where this is not available pods fail to format and
mount GCE PDs. This patch uses linux utilities in a similar way to the
safe_format_and_mount script to format and mount the GCE PD and AWS EBC
devices. That is first attempt a mount. If mount fails try to use file to
investigate the device. If 'file' fails to get any information about
the device and simply returns "data" then assume the device is not
formatted and format it and attempt to mount it again.

Signed-off-by: Sami Wagiaalla <swagiaal@redhat.com>
2015-08-26 11:53:40 -04:00
..
doc.go Add doc.go files for all volume plugins 2015-05-23 16:59:12 -04:00
gce_pd.go Support formatting and mounting GCE PD without 'safe_format_and_mount' 2015-08-26 11:53:40 -04:00
gce_pd_test.go Moving everyone to unversioned client 2015-08-18 10:23:03 -07:00
gce_util.go Support formatting and mounting GCE PD without 'safe_format_and_mount' 2015-08-26 11:53:40 -04:00