mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 11:03:34 +00:00
fix: Set volume driver name to "local" if not specified (#219)
This commit is contained in:
@@ -83,6 +83,9 @@ func (v *VolumeSpec) SetDefaults() VolumeSpec {
|
||||
if spec.VolumeOptions.Name == "" {
|
||||
spec.VolumeOptions.Name = spec.Name
|
||||
}
|
||||
if spec.VolumeOptions.Driver != nil && spec.VolumeOptions.Driver.Name == "" {
|
||||
spec.VolumeOptions.Driver.Name = VolumeDriverLocal
|
||||
}
|
||||
}
|
||||
// TODO: set explicit default values for Propagation and Recursive for bind mounts?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user